33 lines
285 B
NASM
Raw Normal View History

2023-01-11 11:13:09 +01:00
// hello.asm
// this little assembler programm outputs "Hi" on UART_TX
//
// Put your code here:
2024-10-21 20:04:09 -04:00
//check tx status
(START)
@UART_TX
D=M
@SENDH
D;JEQ
@START
0;JMP
(SENDH)
@72
D=A
@UART_TX
M=D
(WAIT)
@UART_TX
D=M
@SENDI
D;JEQ
@WAIT
0;JMP
(SENDI)
@105
D=A
@UART_TX
M=D
(END)
@END
0;JMP