Discussion:
more problems
(too old to reply)
Ryan E Mitchell
2005-08-18 20:06:27 UTC
Permalink
I changed my hex_in subroutine, but my the program still doesn't
recognize either when I input 80000000 or FFFFFFFF, it still continues
on as if I put in a normal value. I am able to work around this so that
I can try to fix other errors (by having it check for a '\n') and I find
that I have other problems as well. But first for this error, I've tried
checking both before and after the call to hex_in and neither works.

My other problem is that on display, all the values except PC are shown
to be 0x0. It goes through PC 0-A, and then ends, showing all 0x0 values.

If anyone has any ideas, that'd be great!

Ryan
B A Bair
2005-08-18 22:02:16 UTC
Permalink
Your two problems may be related. If you are not converting the input
correctly, you may not be executing the right instruction.

However, if you've eliminated this possibility, I recommend that you put a
breakpoint directly into your hex_in subroutine at the top of your input
loop. Check the values in all your registers at that point, and see if you
are shifting the bits correctly, or adding the new values in right.

Good luck!
I changed my hex_in subroutine, but my the program still doesn't recognize
either when I input 80000000 or FFFFFFFF, it still continues on as if I put
in a normal value. I am able to work around this so that I can try to fix
other errors (by having it check for a '\n') and I find that I have other
problems as well. But first for this error, I've tried checking both before
and after the call to hex_in and neither works.
My other problem is that on display, all the values except PC are shown to
be 0x0. It goes through PC 0-A, and then ends, showing all 0x0 values.
If anyone has any ideas, that'd be great!
Ryan
Loading...