mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
32x: built-in BIOS; reset handling; 68k memhandler split
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@801 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
5fadfb1c37
commit
83ff19ec52
7 changed files with 405 additions and 150 deletions
|
@ -41,20 +41,11 @@ void p32x_sh2_write32(unsigned int a, unsigned int d, int id);
|
|||
|
||||
void sh2_reset(SH2 *sh2)
|
||||
{
|
||||
int save_is_slave;
|
||||
void *save_irqcallback;
|
||||
|
||||
save_irqcallback = sh2->irq_callback;
|
||||
save_is_slave = sh2->is_slave;
|
||||
|
||||
memset(sh2, 0, sizeof(SH2));
|
||||
|
||||
sh2->is_slave = save_is_slave;
|
||||
sh2->irq_callback = save_irqcallback;
|
||||
|
||||
sh2->pc = RL(0);
|
||||
sh2->r[15] = RL(4);
|
||||
sh2->sr = I;
|
||||
sh2->vbr = 0;
|
||||
sh2->pending_int_irq = 0;
|
||||
}
|
||||
|
||||
static void sh2_do_irq(SH2 *sh2, int level, int vector)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue