diff options
Diffstat (limited to '108write.subx')
-rw-r--r-- | 108write.subx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/108write.subx b/108write.subx index 43e9bf9b..88e05668 100644 --- a/108write.subx +++ b/108write.subx @@ -194,7 +194,7 @@ $_append-4:loop: 73/jump-if-addr>= $_append-4:end/disp8 # if (out >= outend) abort # just to catch test failures fast 39/compare 3/mod/direct 7/rm32/edi . . . 2/r32/edx . . # compare edi with edx - 73/jump-if-addr>= $_append-4:end/disp8 # TODO: abort + 0f 83/jump-if-addr>= $_append-4:abort/disp32 # *out = *in 8a/copy-byte 0/mod/indirect 6/rm32/esi . . . 3/r32/BL . . # copy byte at *esi to BL 88/copy-byte 0/mod/indirect 7/rm32/edi . . . 3/r32/BL . . # copy byte at BL to *edi @@ -217,4 +217,12 @@ $_append-4:end: 5d/pop-to-ebp c3/return +$_append-4:abort: + (draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0 "_append-4: stream full at " 3 0) # 3=cyan + (draw-int32-hex-wrapping-right-then-down-from-cursor-over-full-screen 0 %eax 3 0) + { + eb/jump loop/disp8 + } + # never gets here + # . . vim:nowrap:textwidth=0 |