Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rutgers!cunixf.cc.columbia.edu!cs.columbia.edu!shamash From: shamash@cs.columbia.edu (Ari Shamash) Newsgroups: comp.os.minix Subject: out_word().. Message-ID: <1990Oct7.230737.3421@cs.columbia.edu> Date: 7 Oct 90 23:07:37 GMT Sender: news@cs.columbia.edu (The Daily News) Reply-To: shamash@cs.columbia.edu (Ari Shamash) Organization: Columbia University Computer Science Dept Lines: 32 I am currently writing a device driver for a controller that inputs/outputs words at a time, instead of bytes. So, I took _out_byte from klib.x, and attempted to convert it to _out_word. I don't know much about either '386 assembly or how arguments are placed and removed from the stack, so I'm not sure if this is correct or not. Should this work???? _out_byte: pop bx pop dx | port pop ax | value sub sp,#2+2 out | output 1 byte jmp (bx) _out_word: pop bx pop dx | port pop ax | value sub sp,#2+2 outw | output 1 word (??) jmp (bx) I'm working on a PS/II model 80, if that makes any difference. This code should run in the 16bit protected mode.. Thanks, Ari -- shamash@cs.columbia.edu ..!rutgers!cs.columbia.edu!shamash