fix bootloader and add docs, minor fix to hello

This commit is contained in:
2025-04-21 23:19:04 +05:30
parent de1ce5cdac
commit 48fbd4abed
2 changed files with 51 additions and 15 deletions

View File

@@ -3,8 +3,9 @@
//
// Put your code here:
// Never
// 78 101 118 101 114 32
// send "Never Graduate!" on UART_TX
// read BUT[1,2] and write to LED[1,2]
@78
D=A
@128
@@ -29,8 +30,6 @@ M=D //r
D=A
@133
M=D // space
// Graduate!
// 71 114 97 100 117 97 116 101 33 32
@71
D=A
@134
@@ -67,10 +66,14 @@ M=D //e
D=A
@142
M=D //!
@10
@13
D=A
@143
M=D // newline
M=D // carriage return
@10
D=A
@144
M=D // line feed
@128
D=A
@CHARBOOT
@@ -102,7 +105,7 @@ D=M
M=D
@CHARBOOT
M=M+1
@144
@145
D=A
@CHARBOOT
D=D-M
@@ -114,5 +117,3 @@ D;JEQ
(ENDBOOT)
@POLL
0;JMP