我想读取我使用db
定义的字符串,但它似乎不起作用,我得到了一些垃圾。有什么问题?
MSG: DB 'This is a test string.',13,10,'Some more string.',0
CSEG at 00000h
MOV SP,#70H
; Hlavni smycka
main:
MOV DPTR,#(MSG+1)
next_char:
MOVC A,@A+DPTR
JZ end_of_string
CALL fn_uart_send_byte ; Function that sends A over UART
INC DPTR
JMP next_char
end_of_string:
JMP main