ReC98/th02/hardware/frame_delay.asm

17 lines
254 B
NASM

; int pascal frame_delay(int frames)
public FRAME_DELAY
frame_delay proc
@@frames = word ptr (cPtrSize + 2)
push bp
mov bp, sp
mov vsync_Count1, 0
@@loop:
mov ax, vsync_Count1
cmp ax, [bp+@@frames]
jb short @@loop
pop bp
ret 2
frame_delay endp