This one should work better

This commit is contained in:
z_demo_z
2002-06-27 21:31:10 +00:00
parent 204f8b4f33
commit d37386bdae

View File

@@ -87,9 +87,9 @@ NEWSYM transdma
xor ebx,ebx xor ebx,ebx
and al,00000111b and al,00000111b
cmp al,5 cmp al,5
jae .notmode567dma jne .notmode5dma
sub al,4 sub al,4
.notmode567dma .notmode5dma
mov bl,al mov bl,al
shl bl,3 shl bl,3
add ebx,.addrwrite add ebx,.addrwrite
@@ -475,6 +475,10 @@ NEWSYM setuphdma
xor ecx,ecx xor ecx,ecx
mov al,[esi] mov al,[esi]
and al,00000111b and al,00000111b
cmp al,5
jne .notmode5dma
sub al,4
.notmode5dma
mov ah,[.addrnumt+eax] mov ah,[.addrnumt+eax]
mov [edx+16],ah mov [edx+16],ah
mov bl,al mov bl,al
@@ -575,6 +579,10 @@ NEWSYM setuphdmars
xor ecx,ecx xor ecx,ecx
mov al,[esi] mov al,[esi]
and al,00000111b and al,00000111b
cmp al,5
jne .notmode5dma
sub al,4
.notmode5dma
mov ah,[.addrnumt+eax] mov ah,[.addrnumt+eax]
mov [edx+16],ah mov [edx+16],ah
mov bl,al mov bl,al
@@ -677,6 +685,10 @@ NEWSYM setuphdma2
xor ecx,ecx xor ecx,ecx
mov al,[esi] mov al,[esi]
and al,00000111b and al,00000111b
cmp al,5
jne .notmode5dma
sub al,4
.notmode5dma
mov ah,[.addrnumt+eax] mov ah,[.addrnumt+eax]
mov [edx+16],ah mov [edx+16],ah
mov bl,al mov bl,al