ReC98/th05/hardware/frame_delay.asm

14 lines
215 B
NASM
Raw Normal View History

2014-11-23 21:25:22 +00:00
; int __cdecl frame_delay(int frames)
frame_delay proc
@@frames = word ptr (cPtrSize + 2)
mov bx, sp
mov bx, ss:[bx+4]
mov vsync_Count1, 0
@@loop:
cmp vsync_Count1, bx
jb short @@loop
ret 2
frame_delay endp