Print contents of register to console in LC3 Assembly
问题 Say I have a value (eg. 1234) that I load into R0. How could I print this value to the console? 回答1: I'm assuming you would like to print a number out to the console but you're getting random characters if anything. This happens when the LC3 tries to interpret your number as an ASCII character. Example: The number 8 in ASCII is the backspace character. To make your program work you will need to add 48 (decimal) or x30 (hex) to your number before you can print it to the console. .ORIG x3000