How to avoid executing variables in lc3 assembly
问题 I am making my first steps in lc3 assembly programming and I noticed that every time I try to store a negative value in memory, for example using "ST" instruction, there is some kind of error. In this memory location is stored "TRAP xFF" instead... Anybody know how can I get over it?? 回答1: You're getting that error because your variables are apart of the run-time code. It's usually best practice to put your variables at the end of your code after the HALT command. .ORIG x3000 MAIN LD R0, VAR1