mirror of https://github.com/nmlgc/ReC98.git
31 lines
565 B
NASM
31 lines
565 B
NASM
public tiles_invalidate_reset, tiles_invalidate_all
|
|
|
|
; void tiles_invalidate_reset();
|
|
tiles_invalidate_reset proc near
|
|
push di
|
|
mov ax, ds
|
|
mov es, ax
|
|
assume es:_DATA
|
|
mov di, offset _halftiles_dirty
|
|
xor eax, eax
|
|
mov cx, (TILES_MEMORY_X * TILE_FLAGS_Y) / 4
|
|
rep stosd
|
|
pop di
|
|
retn
|
|
tiles_invalidate_reset endp
|
|
nop
|
|
|
|
|
|
; void tiles_invalidate_all();
|
|
tiles_invalidate_all proc near
|
|
push di
|
|
mov ax, ds
|
|
mov es, ax
|
|
mov di, offset _halftiles_dirty
|
|
mov eax, 01010101h
|
|
mov cx, (TILES_MEMORY_X * TILE_FLAGS_Y) / 4
|
|
rep stosd
|
|
pop di
|
|
retn
|
|
tiles_invalidate_all endp
|