Mode 4 fixed
This commit is contained in:
@@ -395,7 +395,7 @@
|
|||||||
%%notflipypart
|
%%notflipypart
|
||||||
add ecx,[yposng]
|
add ecx,[yposng]
|
||||||
%%yesflipypart
|
%%yesflipypart
|
||||||
add ecx,[yposng]
|
|
||||||
test word[vrama+eax],4000h
|
test word[vrama+eax],4000h
|
||||||
jnz near %%flipxpart
|
jnz near %%flipxpart
|
||||||
push eax
|
push eax
|
||||||
@@ -504,7 +504,6 @@
|
|||||||
jmp %%next
|
jmp %%next
|
||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
|
|
||||||
%macro drawlinengom16b 10
|
%macro drawlinengom16b 10
|
||||||
; tile value : bit 15 = flipy, bit 14 = flipx, bit 13 = priority value
|
; tile value : bit 15 = flipy, bit 14 = flipx, bit 13 = priority value
|
||||||
; bit 10-12 = palette, 0-9=tile#
|
; bit 10-12 = palette, 0-9=tile#
|
||||||
|
|||||||
@@ -47,8 +47,6 @@ EXTSYM winlogicb
|
|||||||
EXTSYM ngwinptr,objwlrpos,objwen,objclineptr,CSprWinPtr
|
EXTSYM ngwinptr,objwlrpos,objwen,objclineptr,CSprWinPtr
|
||||||
EXTSYM WindowRedraw
|
EXTSYM WindowRedraw
|
||||||
|
|
||||||
NEWSYM BGPT3B, times 256 dw 0
|
|
||||||
|
|
||||||
NEWSYM NewGfxAsmStart
|
NEWSYM NewGfxAsmStart
|
||||||
|
|
||||||
%include "video/vidmacro.mac"
|
%include "video/vidmacro.mac"
|
||||||
|
|||||||
@@ -2909,7 +2909,6 @@ EXTSYM drawmode7ngextbg,drawmode7ngextbg2
|
|||||||
;.offsetm4
|
;.offsetm4
|
||||||
mov edx,eax
|
mov edx,eax
|
||||||
and edx,0FFFFFFC0h
|
and edx,0FFFFFFC0h
|
||||||
mov word[BGPT3B+ebx*2],dx
|
|
||||||
add edx,[vram]
|
add edx,[vram]
|
||||||
mov [ofsmcptr],edx
|
mov [ofsmcptr],edx
|
||||||
and eax,3Fh
|
and eax,3Fh
|
||||||
|
|||||||
@@ -675,8 +675,11 @@ NEWSYM newengine16b
|
|||||||
mov bl,[bgmode]
|
mov bl,[bgmode]
|
||||||
and bl,07h
|
and bl,07h
|
||||||
mov [BGMA+eax],bl
|
mov [BGMA+eax],bl
|
||||||
|
cmp bl,4
|
||||||
|
je .changedmode4
|
||||||
cmp [BGMA+eax-1],bl
|
cmp [BGMA+eax-1],bl
|
||||||
je .nobgma
|
je .nobgma
|
||||||
|
.changedmode4
|
||||||
mov byte[bgallchange+eax],1
|
mov byte[bgallchange+eax],1
|
||||||
.nobgma
|
.nobgma
|
||||||
|
|
||||||
|
|||||||
@@ -2832,8 +2832,8 @@ EXTSYM osm2dis
|
|||||||
je near .offsetm
|
je near .offsetm
|
||||||
cmp byte[t16x161+ebx+%1*256],1
|
cmp byte[t16x161+ebx+%1*256],1
|
||||||
je near .tiles16x16
|
je near .tiles16x16
|
||||||
; cmp byte[BGMA+ebx],4
|
cmp byte[BGMA+ebx],4
|
||||||
; je near .offsetm
|
je near .offsetm
|
||||||
.nooffsetm
|
.nooffsetm
|
||||||
mov eax,[BGPT1+ebx*2+%1*512]
|
mov eax,[BGPT1+ebx*2+%1*512]
|
||||||
test ecx,100h
|
test ecx,100h
|
||||||
@@ -3299,8 +3299,8 @@ EXTSYM osm2dis
|
|||||||
shr dx,5
|
shr dx,5
|
||||||
add ax,dx
|
add ax,dx
|
||||||
.nooma
|
.nooma
|
||||||
cmp byte[BGMA+ebx],4
|
; cmp byte[BGMA+ebx],4
|
||||||
je .offsetm4
|
; je .offsetm4
|
||||||
add eax,40h
|
add eax,40h
|
||||||
.offsetm4
|
.offsetm4
|
||||||
mov edx,eax
|
mov edx,eax
|
||||||
@@ -3687,8 +3687,8 @@ EXTSYM osm2dis
|
|||||||
add ax,dx
|
add ax,dx
|
||||||
.nooma
|
.nooma
|
||||||
mov edx,eax
|
mov edx,eax
|
||||||
cmp byte[BGMA+ebx],4
|
; cmp byte[BGMA+ebx],4
|
||||||
je .offsetm4
|
; je .offsetm4
|
||||||
add edx,40h
|
add edx,40h
|
||||||
.offsetm4
|
.offsetm4
|
||||||
and edx,0FFC0h
|
and edx,0FFC0h
|
||||||
|
|||||||
Reference in New Issue
Block a user