2024-02-24 02:29:36 +00:00
|
|
|
#PUBLIC doAThing_
|
|
|
|
#PUBLIC renderTopTile_
|
|
|
|
PUBLIC renderFloorTile_
|
2024-02-21 21:25:00 +00:00
|
|
|
|
|
|
|
.386
|
|
|
|
.model flat,c
|
|
|
|
|
2024-02-24 02:29:36 +00:00
|
|
|
.CODE
|
2024-02-21 21:25:00 +00:00
|
|
|
doAThing_:
|
|
|
|
push ebp
|
|
|
|
mov ebp, esp
|
|
|
|
|
|
|
|
mov eax, [ebp + 8]
|
|
|
|
|
|
|
|
pop ebp
|
|
|
|
ret
|
|
|
|
|
2024-02-24 02:29:36 +00:00
|
|
|
renderTopTile_:
|
|
|
|
push ebp
|
|
|
|
mov ebp, esp
|
|
|
|
push ebx
|
|
|
|
|
|
|
|
mov eax, [ebp + 8]
|
|
|
|
mov ebx, 20
|
|
|
|
|
|
|
|
_renderNextLine:
|
|
|
|
mov DWORD PTR [eax], 02020202h
|
|
|
|
mov DWORD PTR [eax + 4], 02020202h
|
|
|
|
mov DWORD PTR [eax + 8], 02020202h
|
|
|
|
mov DWORD PTR [eax + 12], 02020202h
|
|
|
|
mov DWORD PTR [eax + 16], 02020202h
|
|
|
|
|
|
|
|
add eax, 320
|
|
|
|
dec ebx
|
|
|
|
cmp ebx, 0
|
|
|
|
jne _renderNextLine
|
|
|
|
|
|
|
|
pop ebx
|
|
|
|
pop ebp
|
|
|
|
ret
|
|
|
|
|
|
|
|
renderFloorTile_:
|
|
|
|
push ebp
|
|
|
|
mov ebp, esp
|
|
|
|
push ebx
|
|
|
|
|
|
|
|
mov eax, [ebp + 8]
|
|
|
|
mov ebx, 20
|
|
|
|
|
|
|
|
_renderNextFloorLine:
|
|
|
|
mov DWORD PTR [eax], 04040404h
|
|
|
|
mov DWORD PTR [eax + 4], 04040404h
|
|
|
|
mov DWORD PTR [eax + 8], 04040404h
|
|
|
|
mov DWORD PTR [eax + 12], 04040404h
|
|
|
|
mov DWORD PTR [eax + 16], 04040404h
|
|
|
|
|
|
|
|
add eax, 320
|
|
|
|
dec ebx
|
|
|
|
cmp ebx, 0
|
|
|
|
jne _renderNextFloorLine
|
|
|
|
|
|
|
|
_done:
|
|
|
|
pop ebx
|
|
|
|
pop ebp
|
|
|
|
ret
|
2024-02-21 21:25:00 +00:00
|
|
|
|
|
|
|
end
|