Fix overwrite error.

This commit is contained in:
n-a-c-h
2005-02-24 21:23:46 +00:00
parent 04be3d1da1
commit 50811b339c

View File

@@ -22,6 +22,8 @@
EXTSYM dsp4_address,dsp4_byte,DSP4GetByte,DSP4SetByte
SECTION .text
NEWSYM DSP4Read8b
mov word[dsp4_address],cx
pushad
@@ -53,10 +55,14 @@ NEWSYM DSP4Read16b
NEWSYM DSP4Write16b
mov word[dsp4_address],cx
mov byte[dsp4_byte],al
mov byte[dsp4temp],ah
pushad
call DSP4SetByte
mov ah,byte[dsp4temp]
mov byte[dsp4_byte],ah
call DSP4SetByte
popad
ret
SECTION .bss
NEWSYM dsp4temp, resb 1