about summary refs log tree commit diff stats
path: root/313index-bounds-check.subx
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-05-18 10:23:54 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-05-18 10:23:54 -0700
commitfd57c48c60851cd39a7105e3805c57d78cf2ea98 (patch)
treefb692b64462e45fdf3ac4f6c04fe7b72b4e94c0e /313index-bounds-check.subx
parent2952a2996060070c529d9b9692f6a6c4b6009d22 (diff)
downloadmu-fd57c48c60851cd39a7105e3805c57d78cf2ea98.tar.gz
start double-buffering
Amazing how much difference it makes even when the implementation is so
naive and slow.
Diffstat (limited to '313index-bounds-check.subx')
-rw-r--r--313index-bounds-check.subx8
1 files changed, 2 insertions, 6 deletions
diff --git a/313index-bounds-check.subx b/313index-bounds-check.subx
index 4bc8e12e..b6a64876 100644
--- a/313index-bounds-check.subx
+++ b/313index-bounds-check.subx
@@ -33,9 +33,7 @@ __check-mu-array-bounds:  # index: int, elem-size: int, arr-size: int, function-
     (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 " is too large for array '" 3 0)  # 3=cyan
     (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 *(ebp+0x18) 3 0)  # 3=cyan
     (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "'" 3 0)  # 3=cyan
-    {
-      eb/jump loop/disp8
-    }
+    (abort "")
     # never gets here
 $__check-mu-array-bounds:end:
     # . restore registers
@@ -53,9 +51,7 @@ __check-mu-array-bounds:overflow:
     (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 ": offset to array '" 3 0)  # 3=cyan
     (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 *(ebp+0x18) 3 0)  # 3=cyan
     (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "' overflowed 32 bits" 3 0)  # 3=cyan
-    {
-      eb/jump loop/disp8
-    }
+    (abort "")
     # never gets here
 
 __mu-abort-null-index-base-address: