Previous 199869 Revisions Next

r21282 Thursday 21st February, 2013 at 20:49:26 UTC by Angelo Salese
Code snippet for the ITI
[src/mame/drivers]coolridr.c

trunk/src/mame/drivers/coolridr.c
r21281r21282
24952495     vector is 0x7f (so VBR+0x1fc)
24962496     level is 0xf
24972497... and indeed the Watchdog irq routine effectively clears this RAM buffer. What the manual doesn't say is that the Watchdog timer irq
2498    presumably is an NMI if this is even possible ...
2498    presumably is treated as an NMI by the SH-2 CPU and not really a "normal" irq exception.
2499    For the record, here's the ITI code snippet:
2500    06002DE4: 2F36   MOV.L   R3,@-SP
2501   06002DE6: E300   MOV     #$00,R3
2502   06002DE8: 2F26   MOV.L   R2,@-SP
2503   06002DEA: D20B   MOV.L   @($2C,PC),R2
2504   06002DEC: 2230   MOV.B   R3,@R2 ;writes 0 to the RAM buffer 0x60d8896
2505   06002DEE: 9305   MOV.W   @($000A,PC),R3
2506   06002DF0: 9205   MOV.W   @($000A,PC),R2
2507   06002DF2: 2231   MOV.W   R3,@R2 ;writes 0x19, disables the watchdog timer
2508   06002DF4: 62F6   MOV.L   @SP+,R2
2509   06002DF6: 63F6   MOV.L   @SP+,R3
2510   06002DF8: 002B   RTE
2511   06002DFA: 0009   NOP
2512
24992513*/
25002514READ32_MEMBER(coolridr_state::coolridr_hack2_r)
25012515{

Previous 199869 Revisions Next


© 1997-2024 The MAME Team