Skip to content

Commit

Permalink
Now you can return!
Browse files Browse the repository at this point in the history
  • Loading branch information
Lim Ding Wen committed Jan 10, 2015
1 parent 50e6567 commit c2f1105
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions COMMENTS_sector1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand All @@ -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

Expand Down
Binary file modified sector1.bin
Binary file not shown.

0 comments on commit c2f1105

Please sign in to comment.