LC3 assembly-how to print the next character of a character -
my aim create program receives letter , prints "next letter".to more specific,if input "p",the output should "q". code:
.orig x3000 lea r4,data ldr r0,r4,#0 add r0,r0,#1 trap x21 halt data .fill x5001 .end
x5001 has "p",i have checked it.so exmpecting see "q" output.however,i strange looking symbol p instead!what's wrong code?thank in advance.
Comments
Post a Comment