Adam Oldham

How to write to ROM

Discussion created by Adam Oldham on Jul 6, 2006
Latest reply on Jul 7, 2006 by Adam Oldham
Using a mc9s12gc32

I have a portion of code that starts runs out of the 3F page fixed at 0xc0000. I am trying to write to the 3E ROM page directly as the program runs out of the 3F page Or (even writing to portions of the 3F page).

Example:
LDX #$C800 ;
EE_ZERO_ROM_LOOP ;
CLR 0,X ; Clear ROM Area
INX ;
CPX #$FFEF ;
BLE EE_ZERO_ROM_LOOP ;

So here, I am trying to clear the ROM area from 0xC800 to 0xFFEF.... but the ROM doesn't seem to clear.

Am I missing something?

Outcomes