Proper latching of bit 7 on $4201

This commit is contained in:
pagefault
2003-05-06 01:40:05 +00:00
parent 3c2ec93237
commit f9a3133f4d
2 changed files with 20 additions and 1 deletions

View File

@@ -1504,6 +1504,18 @@ reg4200w:
; Programmable I/O port (out-port)
reg4201w:
cmp byte[iohvlatch],1
jne .noiohvlatch
test al,80h
jnz .noiohvlatch
mov byte[iohvlatch],0
.noiohvlatch
test byte[ioportval],80h
jnz .nolatch
test al,80h
jz .nolatch
mov byte[iohvlatch],1
.nolatch
mov byte[ioportval],al
mov bl,al
and bl,80h