Discussion:
Another Lab1 Output Discrepancy :)
(too old to reply)
William R. Lorenz
2005-10-26 02:21:02 UTC
Permalink
Hi All,

While all my values in the registers and in memory line up just as they
should, the output generated by the program is a bit weird. While some
of it is alright, some of it contains funky non-hexidecimal characters:

PC=0x3
ACC=0xFFFFFFD6
ÖIR=0xAF
¯MAR=0xF
MDR=0xFFFFFFD6

I am using the 'ta 4' command to print hexidecimal representations of my
registers for PC, ACC, etc. Still, it looks like there's some trailing
characters following the hexidecimal representation that shouldn't be
there. Has anyone else encountered this while trying their program?
Wayne D. Heym
2005-10-26 02:02:04 UTC
Permalink
Post by William R. Lorenz
ACC=0xFFFFFFD6
You're executing an extra "ta 1" here. It produces that "O umlaut" when
the least byte of %r8 is 0xD6.
Post by William R. Lorenz
ÖIR=0xAF
Similarly, you get the overscore character with a "ta 1" when %r8 is a 0xAF.
Post by William R. Lorenz
¯MAR=0xF
MDR=0xFFFFFFD6
I am using the 'ta 4' command to print hexidecimal representations of
my registers for PC, ACC, etc. Still, it looks like there's some
trailing characters following the hexidecimal representation that
shouldn't be there. Has anyone else encountered this while trying
their program?
--
Wayne
William R. Lorenz
2005-10-26 03:16:38 UTC
Permalink
Indeed -- my cut & paste got the best of me, and removing the extra 'ta
1' fixed things right up. Thanks for the help! :)
Post by Wayne D. Heym
Post by William R. Lorenz
ACC=0xFFFFFFD6
You're executing an extra "ta 1" here. It produces that "O umlaut" when
the least byte of %r8 is 0xD6.
Post by William R. Lorenz
ÖIR=0xAF
Similarly, you get the overscore character with a "ta 1" when %r8 is a 0xAF.
Post by William R. Lorenz
¯MAR=0xF
MDR=0xFFFFFFD6
I am using the 'ta 4' command to print hexidecimal representations of
my registers for PC, ACC, etc. Still, it looks like there's some
trailing characters following the hexidecimal representation that
shouldn't be there. Has anyone else encountered this while trying
their program?
Loading...