Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!mit-eddie!killer!walls From: walls@killer.Dallas.TX.US (Monty Walls) Newsgroups: comp.os.minix Subject: casm, oops Keywords: casm peekb peek Message-ID: <7876@killer.Dallas.TX.US> Date: 18 Apr 89 05:54:15 GMT Organization: The Unix(R) Connection, Dallas, Texas Lines: 20 -------------------------------------------------------------------------- Well I goofed. I reversed the parameter order in peekb & peek in asm.h. I just figured it out when my printer driver stopped working (tty.c doesn't use peekb or get_byte, chance protected me in main). So here is the revised version of peekb & peek. #define peek(sg,off) doasm("mov dx,es\npop es\npop bx\nseg es\nmov ax,0(bx)\nmov es,dx\n",sg, off) #define peekb(sg,off) doasm("mov dx,es\npop es\npop bx\nseg es\nmovb al,0(bx)\nxorb ah,ah\nmov es,dx\n",sg, off) -Monty Walls Work: Home: MIS Division, Tech. Support 2224 Houston Apt #8 Oklahoma Tax Commission Norman, OK, 73701 2501 N. Lincoln USA OKC, OK, 73194 Phone - 405-364-5123 USA uucp - killer!walls Phone - 405-521-4300