// Map flash bank #1 into XDATA for access to "ROM mapped as data".
MEMCTR = (MEMCTR & 0xF8) | 0x01;
能解释下这段意思吗?
Viki Shi:
MEMCTR是内存系统控制寄存器,这句代码就是对该寄存器赋值。具体解释如下:
gaoyang9992006:
对寄存器MEMCTR的BIT1和BIT2清零,并对BIT0置位。其他位保持不变
gaoyang9992006:
回复 gaoyang9992006:
说白了就是最后三位代表的XBANK赋值001