## 	PS/2 mouse on IRQ 12

#cell=2


## clump auxring data 1024 cursor 4 mask 4 packetbyte 4  
## IRQ12, mouse byte of mouse packet waiting

L auxreflex		

cell=2		
	push A
	push D
	push B
cell=4
		recieve byte 0x60
		otheroperandsize
		otheraddresssize
		1+ @ $((auxlubber))
		otheroperandsize
		otheraddresssize
		AND $((auxringmask)) to @ $((auxlubber))
		otheroperandsize
		otheraddresssize
		= @ $((auxlubber)) to B
		otheroperandsize
		+ $((auxring)) to B
		otheroperandsize
		otheraddresssize
		= byte A to @ B
		otheroperandsize
		otheraddresssize
		1+ @ $((auxcounter))
		otheroperandsize
		otheraddresssize
		1+ @ $((auxpacketbyte))
		otheroperandsize
		otheraddresssize
		AND $_____III to @ $((auxpacketbyte)) 
cell=2
	pull B
	pull D
	pull A
						dismisso
cell=4




#Format of mouse data packet:
#Offset  Size    Description     (Table P0389)
# 00h    BYTE    status
#                bit7    : y-data overrun
#                bit6    : x-data overrun
#                bit5    : y-data negative
#                bit4    : x-data negative
#                bit3-2=0: reserved
#                bit1    : right button pressed
#                bit0    : left button pressed
# 01h    BYTE    reserved
# 02h    BYTE    x-data
# 03h    BYTE    reserved
# 04h    BYTE    y-data
# 05h    BYTE    reserved
# 06h    BYTE    z-data (0)
# 07h    BYTE    reserved
#SeeAlso: #P0387,#P0388


