about summary refs log tree commit diff stats
path: root/319timer.subx
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-06-29 22:45:33 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-06-29 22:46:26 -0700
commitc76679dbff6b3f350fbf0696a0d986514ba11676 (patch)
tree0f872e62d310c24d0ec3728b3b5ce4b1b53766df /319timer.subx
parent1083f2a400d926d57bc9dc6ab412f54295719bfc (diff)
downloadmu-c76679dbff6b3f350fbf0696a0d986514ba11676.tar.gz
more general timer interface
Diffstat (limited to '319timer.subx')
-rw-r--r--319timer.subx13
1 files changed, 13 insertions, 0 deletions
diff --git a/319timer.subx b/319timer.subx
new file mode 100644
index 00000000..a88af39e
--- /dev/null
+++ b/319timer.subx
@@ -0,0 +1,13 @@
+== code
+
+timer-counter:  # -> _/eax: int
+    # . prologue
+    55/push-ebp
+    89/<- %ebp 4/r32/esp
+    #
+    8b/-> *Timer-counter 0/r32/eax
+$timer-counter:end:
+    # . epilogue
+    89/<- %esp 5/r32/ebp
+    5d/pop-to-ebp
+    c3/return