mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
Fix a.masm changes so MSVC builds work again. The relevant functionality seems to work (non-power of 2 textures drawn without error), even with CLASSIC_NONPOW2_YSIZE_WALLS defined in engine.c, but I'm not familiar with any corner or edge cases that need to be watched out for with this.
Note: CLASSIC_NONPOW2_YSIZE_WALLS is still not enabled in svn. git-svn-id: https://svn.eduke32.com/eduke32@3035 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ede713af62
commit
ead8204e1e
1 changed files with 12 additions and 12 deletions
|
@ -600,20 +600,20 @@ CDECLBEGINSET 6
|
||||||
push ebp
|
push ebp
|
||||||
mov ebp, edx ; ebp: vertical place
|
mov ebp, edx ; ebp: vertical place
|
||||||
mov ebx, eax ; ebx: vertical increment
|
mov ebx, eax ; ebx: vertical increment
|
||||||
mov eax, dword ptr [globaltilesizy]
|
mov eax, dword ptr [_globaltilesizy]
|
||||||
mov dword ptr [np2_beginvline+1], eax
|
mov dword ptr [np2_beginvline+1], eax
|
||||||
inc ecx
|
inc ecx
|
||||||
np2_fixchain1a: sub edi, 320
|
np2_fixchain1a: sub edi, 320
|
||||||
np2_beginvline: ; +1: y tile size
|
np2_beginvline: ; +1: y tile size
|
||||||
mov eax, 0x00000123
|
mov eax, 00000123h
|
||||||
mul ebp
|
mul ebp
|
||||||
np2_fixchain1b: add edi, 320
|
np2_fixchain1b: add edi, 320
|
||||||
and eax, 0x000000ff
|
and eax, 000000ffh
|
||||||
mov al, byte ptr [esi+edx]
|
mov al, byte ptr [esi+edx]
|
||||||
add ebp, ebx
|
add ebp, ebx
|
||||||
dec ecx
|
dec ecx
|
||||||
np2_do_palookup: ; +2: addr
|
np2_do_palookup: ; +2: addr
|
||||||
mov al, byte ptr [0xbeeff00d+eax]
|
mov al, byte ptr [eax+0000beefh]
|
||||||
mov byte ptr [edi], al
|
mov byte ptr [edi], al
|
||||||
jnz short np2_beginvline
|
jnz short np2_beginvline
|
||||||
mov eax, ebp
|
mov eax, ebp
|
||||||
|
@ -654,17 +654,17 @@ CDECLBEGINSET 6
|
||||||
push ebp
|
push ebp
|
||||||
mov ebp, edx ; ebp: vertical place
|
mov ebp, edx ; ebp: vertical place
|
||||||
mov ebx, eax ; ebx: vertical increment
|
mov ebx, eax ; ebx: vertical increment
|
||||||
mov eax, dword ptr [globaltilesizy]
|
mov eax, dword ptr [_globaltilesizy]
|
||||||
mov dword ptr [mnp2_beginvline+1], eax
|
mov dword ptr [mnp2_beginvline+1], eax
|
||||||
mnp2_beginvline: ; +1: y tile size
|
mnp2_beginvline: ; +1: y tile size
|
||||||
mov eax, 0x00000123
|
mov eax, 00000123h
|
||||||
mul ebp
|
mul ebp
|
||||||
and eax, 0x000000ff
|
and eax, 000000ffh
|
||||||
mov al, byte ptr [esi+edx]
|
mov al, byte ptr [esi+edx]
|
||||||
cmp al, 255
|
cmp al, 255
|
||||||
je short mskipmask1
|
je short mskipmask1
|
||||||
mnp2_do_palookup: ; +2: addr
|
mnp2_do_palookup: ; +2: addr
|
||||||
mov al, byte ptr [0xbeeff00d+eax]
|
mov al, byte ptr [eax+0000beefh]
|
||||||
mov byte ptr [edi], al
|
mov byte ptr [edi], al
|
||||||
mskipmask1:
|
mskipmask1:
|
||||||
add ebp, ebx
|
add ebp, ebx
|
||||||
|
@ -791,18 +791,18 @@ CDECLBEGINSET 6
|
||||||
mov ebp, edx ; ebp: vertical place
|
mov ebp, edx ; ebp: vertical place
|
||||||
mov ebx, eax ; ebx: vertical increment
|
mov ebx, eax ; ebx: vertical increment
|
||||||
inc ecx
|
inc ecx
|
||||||
mov eax, dword ptr [globaltilesizy]
|
mov eax, dword ptr [_globaltilesizy]
|
||||||
mov dword ptr [tnp2_beginvline+1], eax
|
mov dword ptr [tnp2_beginvline+1], eax
|
||||||
tnp2_beginvline: ; +1: y tile size
|
tnp2_beginvline: ; +1: y tile size
|
||||||
mov eax, 0x00000123
|
mov eax, 00000123h
|
||||||
mul ebp
|
mul ebp
|
||||||
and eax, 0x000000ff
|
and eax, 000000ffh
|
||||||
mov al, byte ptr [esi+edx]
|
mov al, byte ptr [esi+edx]
|
||||||
cmp al, 255
|
cmp al, 255
|
||||||
je short tskipmask1
|
je short tskipmask1
|
||||||
ntransrev0:
|
ntransrev0:
|
||||||
tnp2_do_palookup: ; +2: addr
|
tnp2_do_palookup: ; +2: addr
|
||||||
mov al, byte ptr [0xbeeff00d+eax]
|
mov al, byte ptr [eax+0000beefh]
|
||||||
ntransrev1:
|
ntransrev1:
|
||||||
mov ah, byte ptr [edi]
|
mov ah, byte ptr [edi]
|
||||||
tnmach4: mov al, byte ptr [eax+88888888h] ;_luc[eax]
|
tnmach4: mov al, byte ptr [eax+88888888h] ;_luc[eax]
|
||||||
|
|
Loading…
Reference in a new issue