I'd like to tap the collective brains trust of the forum to see if we can sort out an odd problem I'm having.
I have built a small 65C02 based system, 32k RAM, 32k FLASH ROM, I/O at $8000, serial chip at $8500.
The code in the attached file testHex4-Working.S print the hex numbers from $0000 to $FFFF to the serial port. This works fine.
The other file, testHex4-NotWorking.S has had the first of the delay loops replaced with a JSR call to the same delay routine used in the working code but the high byte is printed as $08 for all values as shown below.
If someone has a moment, could you cast an eye over this and see where I'm going wrong before I go completely cross-eyed?
Thanks,
Gary
Code: Select all
0800
0801
0802
0803
0804
0805
0806
0807
0808
0809
080A
080B
080C
080D
080E
080F
0810
0811