|
|
| version 1.7, 2003/12/01 10:45:46 | version 1.8, 2003/12/01 17:13:36 |
|---|---|
| Line 592 static REG16 MEMCALL egcw_rd(UINT32 addr | Line 592 static REG16 MEMCALL egcw_rd(UINT32 addr |
| static REG16 MEMCALL emmcw_rd(UINT32 address) { | static REG16 MEMCALL emmcw_rd(UINT32 address) { |
| BYTE *ptr; | const BYTE *ptr; |
| REG16 ret; | |
| ptr = extmem.pageptr[(address >> 14) & 3] + LOW14(address); | if ((address & 0x3fff) != 0x3fff) { |
| return(LOADINTELWORD(ptr)); | ptr = extmem.pageptr[(address >> 14) & 3] + LOW14(address); |
| return(LOADINTELWORD(ptr)); | |
| } | |
| else { | |
| ret = extmem.pageptr[(address >> 14) & 3][0x3fff]; | |
| ret += extmem.pageptr[((address + 1) >> 14) & 3][0] << 8; | |
| return(ret); | |
| } | |
| } | } |
| static REG16 MEMCALL i286w_itf(UINT32 address) { | static REG16 MEMCALL i286w_itf(UINT32 address) { |