[comp.os.minix] casm, oops

walls@killer.Dallas.TX.US (Monty Walls) (04/18/89)

--------------------------------------------------------------------------

	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