Date: Sat, 19 May 2007 17:01:23 +0200 From: rmgls@wanadoo.fr To: freebsd-multimedia@freebsd.org Subject: direct I/O access Message-ID: <20070519150125.5BEF4700008B@mwinf2313.orange.fr>
next in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070519150125.5BEF4700008B>