| 1235 | } |
| 1236 | |
| 1237 | static void trap(u16 code=0) |
| 1238 | { |
| 1239 | cpuRegs.pc -= 4; |
| 1240 | Console.Warning("Trap exception at 0x%08x", cpuRegs.pc); |
| 1241 | cpuException(0x34, cpuRegs.branch); |
| 1242 | } |
| 1243 | |
| 1244 | /********************************************************* |
| 1245 | * Register trap * |