mirror of https://github.com/nmlgc/ReC98.git
18 lines
252 B
NASM
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
|