#include "PalmType.h"
#include "PalmChip.h"

CCHAR cOrMask[8] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80};
CCHAR cAndMask[8] = {0xfe, 0xfd, 0xfb, 0xf7, 0xef, 0xdf, 0xbf, 0x7f};

void SwitchPage(UCHAR iPage)
{
//    XBYTE[PROG_DATA_MODE] = 0x40;   // set the page switch mode to reset
    XBYTE[PROG_DATA_MODE] = cOrMask[6];   // set the page switch mode to reset
    XBYTE[PROG_PAGE] = iPage;       // system is reset to run in flash
}



