From 6f2513efa013d423139b3c8ac050fb173bd2c539 Mon Sep 17 00:00:00 2001 From: Lim Ding Wen Date: Wed, 14 Jan 2015 12:49:16 +0800 Subject: [PATCH] Fixed INC and DEC and also shrunk them (I learnt how to contact memory directly). Also fixed backspace in the process! :) --- COMMENTS_sector1 | 6 +++--- sector1.bin | Bin 512 -> 512 bytes 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/COMMENTS_sector1 b/COMMENTS_sector1 index 1e5290d..0812355 100644 --- a/COMMENTS_sector1 +++ b/COMMENTS_sector1 @@ -91,8 +91,8 @@ Handle putting characters into input buffer. Check overflow. Put into buffer 7C76 MOV (reg to r/m) byte 10AL111 word +501 ([BX + 501]) -7C7A INCBL -7C7B MOV (reg to r/m) byte 00BL110 word 500 +7C7A NOP +7C7B INC byte 00000110 word 500 7C7F NOP 7C80 NOP 7C81 RET @@ -129,7 +129,7 @@ Handle backspace 7CC6 CMP (immediate8) byte 00000110 word 500 byte 0 7CCB JZ byte -6D to 7C60 (don't print, return to read immediately) -7CCD DEC byte 00000110 word 500 +7CCD DEC byte 00001110 word 500 7CD1 JMP byte -6F to 7C64 (print but don't handle as normal character -- don't input into buffer) diff --git a/sector1.bin b/sector1.bin index 5e61aea388bd9cbb575bc92132d675eac72c6f6d..84ea4f3281cfb213fbd469a2d71f1b1dcf0e35c5 100644 GIT binary patch delta 19 acmZo*X<(U9#XR93+r-*HM!t>b4H*GM+y=@3 delta 19 acmZo*X<(U9#q8W6H?cO5k!|C7Lq-5R_68RK