diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-05-18 10:23:54 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-05-18 10:23:54 -0700 |
commit | fd57c48c60851cd39a7105e3805c57d78cf2ea98 (patch) | |
tree | fb692b64462e45fdf3ac4f6c04fe7b72b4e94c0e /313index-bounds-check.subx | |
parent | 2952a2996060070c529d9b9692f6a6c4b6009d22 (diff) | |
download | mu-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.subx | 8 |
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: |