2019-09-15 16:23:33 +00:00
|
|
|
public TILES_INVALIDATE_RESET, TILES_INVALIDATE_ALL
|
2018-12-29 17:33:27 +00:00
|
|
|
|
2019-09-15 16:23:33 +00:00
|
|
|
; void pascal near tiles_invalidate_reset(void);
|
2018-12-29 17:33:27 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2019-09-15 16:23:33 +00:00
|
|
|
; void pascal near tiles_invalidate_all(void);
|
2018-12-29 17:33:27 +00:00
|
|
|
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
|