From c2f110548ca0a8b659285e7fa5385b6ac1fddd0d Mon Sep 17 00:00:00 2001 From: Lim Ding Wen Date: Sun, 11 Jan 2015 07:56:30 +0800 Subject: [PATCH] Now you can return! --- COMMENTS_sector1 | 21 ++++++++++++++++++--- sector1.bin | Bin 512 -> 512 bytes 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/COMMENTS_sector1 b/COMMENTS_sector1 index da1a058..65d7fa4 100644 --- a/COMMENTS_sector1 +++ b/COMMENTS_sector1 @@ -14,8 +14,8 @@ Scan and print; typing. 7C10 XOR (reg to rm) byte 11AHAH 7C12 INT byte 16 -7C14 CMPAL byte 11 (Ctrl-Q ascii) -7C16 JZ byte +8 to 7C20 +7C14 CALL word +19 to 7C30 +7C17 NOP 7C18 MOVAH byte E 7C1A INT byte 10 7C1C JMP byte -E to 7C10 @@ -27,6 +27,21 @@ Halt the system. 7C28 CLI 7C29 HLT +Handle keyboard meta. + +7C30 CMPAL byte 11 (Ctrl-Q ascii) +7C32 JZ byte -14 to 7C20 +7C34 CMPAL byte D (return ascii) +7C36 JNZ byte +17 to 7C4F + +7C38..7C46 NOP (in-case) + +7C47 MOVAH byte E +7C49 MOVAL byte A (linefeed ascii) +7C4B INT byte 10 +7C4D MOVAL byte D (return ascii) +7C4F RET + 7D50 to 7DBF: Procedures code 7D50 to 7D6F: String print code (offset 0) @@ -39,7 +54,7 @@ Halt the system. 7D5E INT byte 10 7D60 INCCX 7D61 JMP byte -F to 7D54 -7D63 RET +7D63 RETF 7DC0 to 7DFD: Data diff --git a/sector1.bin b/sector1.bin index d78d82334685274f737f5a5a54b590f136d2b569..d2abecef28091f05de4e1fd193cc226d2cbffac7 100644 GIT binary patch delta 74 zcmZo*X<(TkV)H_hVZs)^vjVR_F)-}9SUZb>;VS#DFB<}1zhYpp5iEIQ!&@po0TpcF U+rV{JU<2>rg^rAq0~j{|0H}E&dH?_b delta 47 zcmV+~0MP${1b_sP6dpVgbO^K#%@FJI006qteVPCO)d%|Yuu<#k008>*kx~DVU>}oE F0kFTX6vY4l