Committing all changes in cpu directory
This commit is contained in:
@@ -393,6 +393,9 @@ ALIGN32
|
|||||||
.writeaddr dd 0
|
.writeaddr dd 0
|
||||||
.cebx dd 0
|
.cebx dd 0
|
||||||
|
|
||||||
|
%macro TestDMA 0
|
||||||
|
%endmacro
|
||||||
|
|
||||||
; DMA enable register
|
; DMA enable register
|
||||||
; use dmadata for input on dma
|
; use dmadata for input on dma
|
||||||
NEWSYM reg420Bw
|
NEWSYM reg420Bw
|
||||||
@@ -404,41 +407,49 @@ NEWSYM reg420Bw
|
|||||||
mov esi,dmadata
|
mov esi,dmadata
|
||||||
test al,01h
|
test al,01h
|
||||||
jz .notransa
|
jz .notransa
|
||||||
|
TestDMA
|
||||||
call transdma
|
call transdma
|
||||||
.notransa
|
.notransa
|
||||||
add esi,16
|
add esi,16
|
||||||
test al,02h
|
test al,02h
|
||||||
jz .notransb
|
jz .notransb
|
||||||
|
TestDMA
|
||||||
call transdma
|
call transdma
|
||||||
.notransb
|
.notransb
|
||||||
add esi,16
|
add esi,16
|
||||||
test al,04h
|
test al,04h
|
||||||
jz .notransc
|
jz .notransc
|
||||||
|
TestDMA
|
||||||
call transdma
|
call transdma
|
||||||
.notransc
|
.notransc
|
||||||
add esi,16
|
add esi,16
|
||||||
test al,08h
|
test al,08h
|
||||||
jz .notransd
|
jz .notransd
|
||||||
|
TestDMA
|
||||||
call transdma
|
call transdma
|
||||||
.notransd
|
.notransd
|
||||||
add esi,16
|
add esi,16
|
||||||
test al,10h
|
test al,10h
|
||||||
jz .notranse
|
jz .notranse
|
||||||
|
TestDMA
|
||||||
call transdma
|
call transdma
|
||||||
.notranse
|
.notranse
|
||||||
add esi,16
|
add esi,16
|
||||||
test al,20h
|
test al,20h
|
||||||
jz .notransf
|
jz .notransf
|
||||||
|
TestDMA
|
||||||
call transdma
|
call transdma
|
||||||
.notransf
|
.notransf
|
||||||
add esi,16
|
add esi,16
|
||||||
test al,40h
|
test al,40h
|
||||||
jz .notransg
|
jz .notransg
|
||||||
|
TestDMA
|
||||||
call transdma
|
call transdma
|
||||||
.notransg
|
.notransg
|
||||||
add esi,16
|
add esi,16
|
||||||
test al,80h
|
test al,80h
|
||||||
jz .notransh
|
jz .notransh
|
||||||
|
TestDMA
|
||||||
call transdma
|
call transdma
|
||||||
.notransh
|
.notransh
|
||||||
pop edx
|
pop edx
|
||||||
@@ -762,6 +773,7 @@ NEWSYM hdmastartsc, db 0
|
|||||||
NEWSYM hdmarestart, db 0
|
NEWSYM hdmarestart, db 0
|
||||||
|
|
||||||
NEWSYM reg420Cw
|
NEWSYM reg420Cw
|
||||||
|
|
||||||
mov [curhdma],al
|
mov [curhdma],al
|
||||||
mov bx,[resolutn]
|
mov bx,[resolutn]
|
||||||
cmp word[curypos],bx
|
cmp word[curypos],bx
|
||||||
|
|||||||
@@ -2678,6 +2678,7 @@ NEWSYM cpuover
|
|||||||
jmp execloop.startagain
|
jmp execloop.startagain
|
||||||
|
|
||||||
.nmi
|
.nmi
|
||||||
|
mov byte[irqon],80h
|
||||||
mov byte[doirqnext],0
|
mov byte[doirqnext],0
|
||||||
inc dword[NetSent]
|
inc dword[NetSent]
|
||||||
cmp byte[yesoutofmemory],1
|
cmp byte[yesoutofmemory],1
|
||||||
@@ -4373,6 +4374,7 @@ NEWSYM execsingle
|
|||||||
jmp dword near [edi+ebx*4]
|
jmp dword near [edi+ebx*4]
|
||||||
|
|
||||||
.nmi
|
.nmi
|
||||||
|
mov byte[irqon],80h
|
||||||
cmp byte[C4Enable],0
|
cmp byte[C4Enable],0
|
||||||
je .noC4
|
je .noC4
|
||||||
call C4VBlank
|
call C4VBlank
|
||||||
|
|||||||
@@ -2964,7 +2964,7 @@ NEWSYM BWUsed, db 0
|
|||||||
.shift
|
.shift
|
||||||
cmp byte[SA1Status],0
|
cmp byte[SA1Status],0
|
||||||
je .nosa1
|
je .nosa1
|
||||||
mov byte[debstop3],1
|
; mov byte[debstop3],1
|
||||||
; value of 8Fh
|
; value of 8Fh
|
||||||
test byte[SA1Overflow+1],80h
|
test byte[SA1Overflow+1],80h
|
||||||
jnz .2bit
|
jnz .2bit
|
||||||
|
|||||||
@@ -28,9 +28,10 @@ EXTSYM Sflagnz, Sflago, Sflagc,dmadata
|
|||||||
;*******************************************************
|
;*******************************************************
|
||||||
; Flag Setting Macros
|
; Flag Setting Macros
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
|
EXTSYM debuggeron
|
||||||
|
|
||||||
%macro endloop 0
|
%macro endloop 0
|
||||||
|
call sa1debug
|
||||||
mov bl,[esi]
|
mov bl,[esi]
|
||||||
inc esi
|
inc esi
|
||||||
sub dh,[cpucycle+ebx]
|
sub dh,[cpucycle+ebx]
|
||||||
|
|||||||
Reference in New Issue
Block a user