about summary refs log tree commit diff stats
path: root/baremetal/313index-bounds-check.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2021-01-09 18:28:27 -0800
committerKartik Agaram <vc@akkartik.com>2021-01-09 18:29:04 -0800
commit0518944e379f343542c872a20d3d5a2aee744297 (patch)
treec79fa2a0dd3a45c61f835796fb0b5f74f58c23d5 /baremetal/313index-bounds-check.subx
parent7f8770ae082a723faae89faea0dce6635feb7cdb (diff)
downloadmu-0518944e379f343542c872a20d3d5a2aee744297.tar.gz
7491 - baremetal: draw ASCII text to screen
Diffstat (limited to 'baremetal/313index-bounds-check.subx')
-rw-r--r--baremetal/313index-bounds-check.subx11
1 files changed, 11 insertions, 0 deletions
diff --git a/baremetal/313index-bounds-check.subx b/baremetal/313index-bounds-check.subx
new file mode 100644
index 00000000..8380d741
--- /dev/null
+++ b/baremetal/313index-bounds-check.subx
@@ -0,0 +1,11 @@
+# TODO: bring this back
+
+__check-mu-array-bounds:  # index: int, elem-size: int, arr-size: int, function-name: (addr array byte), array-name: (addr array byte)
+    # . prologue
+    55/push-ebp
+    89/<- %ebp 4/r32/esp
+$__check-mu-array-bounds:end:
+    # . epilogue
+    89/<- %esp 5/r32/ebp
+    5d/pop-to-ebp
+    c3/return