From 2682bc5d1d864341aaeb42a449db73c3ecd16d70 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Wed, 30 Dec 2020 19:07:31 +0000 Subject: Initial import --- src/ubox/ubox_get_vsync_freq.z80 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/ubox/ubox_get_vsync_freq.z80 (limited to 'src/ubox/ubox_get_vsync_freq.z80') diff --git a/src/ubox/ubox_get_vsync_freq.z80 b/src/ubox/ubox_get_vsync_freq.z80 new file mode 100644 index 0000000..681fe67 --- /dev/null +++ b/src/ubox/ubox_get_vsync_freq.z80 @@ -0,0 +1,9 @@ +.globl _ubox_get_vsync_freq + +_ubox_get_vsync_freq:: + ld a, (#0x002b) + and #128 + ld l, a + ret z + ld l, #1 + ret -- cgit v1.2.3