Brandon
2005-11-22 13:55:35 UTC
I have the entire lab written and hopefully functional, but my ta 2
instruction is not working correctly the second time around. That is, when
I first input "1A\n", it works just fine. Then, I use a ta 5 to get the
integer to be stored at 1a, and that works fine. Now I go back to my hex_in
subroutine, but when ta 2 comes around, instead of accepting a character
from the user, a 0xA or "\n" is automatically loaded into %r8. I have
physically traced through the program up to this point and have seen this
happen. Is this a result of using the subsequent ta commands, or perhaps a
consequence of pressing the return key when entering the integer during the
ta 5 instruction?
For now, I will physically program the SAM instructions hardwired into my
program in order to test everything else, but I'm guessing there has to be
something strange going on. Any help or explanation would be greatly
appreciated.
instruction is not working correctly the second time around. That is, when
I first input "1A\n", it works just fine. Then, I use a ta 5 to get the
integer to be stored at 1a, and that works fine. Now I go back to my hex_in
subroutine, but when ta 2 comes around, instead of accepting a character
from the user, a 0xA or "\n" is automatically loaded into %r8. I have
physically traced through the program up to this point and have seen this
happen. Is this a result of using the subsequent ta commands, or perhaps a
consequence of pressing the return key when entering the integer during the
ta 5 instruction?
For now, I will physically program the SAM instructions hardwired into my
program in order to test everything else, but I'm guessing there has to be
something strange going on. Any help or explanation would be greatly
appreciated.