direct I/O access

rmgls at wanadoo.fr rmgls at wanadoo.fr
Sat May 19 15:29:32 UTC 2007


hi all,

i am trying to port my old assembler soft for Dos to FreeBSD.
i need to write and read directly to the midi and scsi device.
when i try something like this i receive a coredump on the outb line.

SORRY, i am NOT nor a C nor a FreeBSD expert!!!
all i know is Assembly language!

Can you enlight me please?

Many thanks in advance and bests regards

Raoul Megelas
rmgls at wanadeoo.fr
---cut---

	.data
	.align 4
path: .asciz "/dev/io"

	.text
	.align 4
	.global _start
_start:
	pushl	$02
	pushl	path
	int	$0x80
	addl	$0x08,%esp
	movl	$0x330,%edx
	movl	$0x90,%eax
	outb	%al,%dx
	nop
	nop
	nop
	movb	$0x50,%al
	outb	%al,%dx
	nop
	nop
	nop
	outb	%al,%dx
	pushl	$0
	movl	$0x1,%eax
	int	$0x80



More information about the freebsd-multimedia mailing list