diff options
| author | Javier Degirolmo | 2012-08-14 22:49:32 -0300 |
|---|---|---|
| committer | Javier Degirolmo | 2012-08-14 22:49:32 -0300 |
| commit | 6ab75ecb612fbbe2ec939bd758bbbe620e6d5040 (patch) | |
| tree | 8122e6eeeacf4912b439dc77e48ea30181b48c01 /tester/video/vsync.68k | |
| parent | 416f24632deee748d4789982262063bda598a1ef (diff) | |
Renamed Echo Tester directory from src-68k to tester
Diffstat (limited to 'tester/video/vsync.68k')
| -rw-r--r-- | tester/video/vsync.68k | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tester/video/vsync.68k b/tester/video/vsync.68k new file mode 100644 index 0000000..ed5ac17 --- /dev/null +++ b/tester/video/vsync.68k @@ -0,0 +1,19 @@ +;**************************************************************************** +; VSync +; Waits until the next frame +;**************************************************************************** + +VSync: + lea ($C00004), a6 + +@Loop1: ; Wait until current VBlank is over + move.w (a6), d7 + btst.l #3, d7 + bne.s @Loop1 + +@Loop2: ; Wait until next VBlank starts + move.w (a6), d7 + btst.l #3, d7 + beq.s @Loop2 + + rts ; End of subroutine |
