ReC98/th03/math/randring_fill.asm

18 lines
252 B
NASM

; void randring_fill(void)
public _randring_fill
_randring_fill proc near
push si
mov si, RANDRING_SIZE - 1
@@loop:
call IRand
mov _randring[si], al
dec si
jge short @@loop
if GAME ge 4
mov _randring_p, 0
endif
pop si
ret
_randring_fill endp