Vincent --
The program is for the QE128, which is on the board.
The program runs, but obviously doesn't load Port A.
I wrote a tiny program just to test those memory locations. Here is the main part of the program:
XDEF _Startup
ABSENTRY _Startup
ORG RAMStart ; Insert your data definition here
ExampleVar: DS.B 1
ORG $4028 ; was ROMStart
_Startup:
LDHX #RAMEnd+1 ; initialize the stack pointer
TXS
CLI ; enable interrupts
mainLoop:
NOP
lda PTAD
feed_watchdog
BRA mainLoop
It puts the "LDA PTAD" right at 0x402E and 0x402F. No difference, they are 0xFF.
I then added some NOPs to shove the code over a bit:
ORG $4028 ; was ROMStart
_Startup:
LDHX #RAMEnd+1 ; initialize the stack pointer
TXS
CLI ; enable interrupts
mainLoop:
NOP
NOP
NOP
NOP
NOP
lda PTAD
feed_watchdog
BRA mainLoop
0x402E and 0x402F are still 0xff. The LDA PTAD has moved to 0x4032.
So, I guess the chip is bad.
Is there a way to test the next chip to see if it has a similar problem? I know the factory has ways, but is there anything I can use?
Gary