Hi. I'm a beginner of Freescale 8-Bit MCU. Recent I read the code below used to erase the EEPROM of DZ60. I have understood most of code means. But I cannot understand first three line of codes. Should someone like to explain these for me? Thanks!
E_EEPROM:
STA ,X ; H:X中是要擦出的EEPROM段的地址
NOP
STA ,X lda #(mFSTAT_FPVIOL + mFSTAT_FACCERR)
sta FSTAT sta 0, x ; H:X中保存着要擦出的EEPROM的地址
lda #mFSTAT_FCBEF
sta FSTAT
nop
CheckDoneEErase:
lda FSTAT
lsla bpl CheckDoneEErase
aix #8
cphx #EEP_END
blo E_EEPROM
jmp SUCC