| 300 | } |
| 301 | |
| 302 | int GetNesFileAddress(int A){ |
| 303 | int result; |
| 304 | if((A < 0x6000) || (A > 0xFFFF))return -1; |
| 305 | result = &Page[A>>11][A]-PRGptr[0]; |
| 306 | if((result > (int)(PRGsize[0])) || (result < 0))return -1; |
| 307 | else return result+NES_HEADER_SIZE; //16 bytes for the header remember |
| 308 | } |
| 309 | |
| 310 | int GetRomAddress(int A){ |
| 311 | int i; |
no outgoing calls
no test coverage detected