hello again:
i'm having a mental block on something that should be quite straight forward. following the flow chart of the S12XEETX4KV2 module i arrived at this code.
EPROT is set at the start
movb #%11111000,EPROT
and the eeprom is erased by the start of code warrior.
when i call the routine it does not program the word as expected.
LoadMachineDefaults
ldx #DJoystick1XMax ;start address of default data
ldy #Joystick1XMax ;start address of eeprom
brset ECLKDIV,mECLKDIV_EDIVLD,CheckCBEIF
movb #%01001010,ECLKDIV
CheckCBEIF brclr ESTAT,#mESTAT_CBEIF,*
ldd 2,x+
std 2,y+
movb #$20,ECMD ;
movb #mESTAT_CBEIF,ESTAT
brclr ESTAT,#mESTAT_CBEIF,*
brclr ESTAT,#mESTAT_CCIF,*
rts
any help is greatly appreciated!
regards,
ed