Mercurial > repos > blastem
comparison musashi/m68kcpu.c @ 1778:30b5952fd32e mame_interp
Get latency between interrupt latch and interrupt acceptance working with Musashi
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 13 Mar 2019 22:01:22 -0700 |
parents | ddcd59a6122e |
children |
comparison
equal
deleted
inserted
replaced
1777:5358a7126b96 | 1778:30b5952fd32e |
---|---|
896 this->stopped &= ~STOP_LEVEL_STOP; | 896 this->stopped &= ~STOP_LEVEL_STOP; |
897 | 897 |
898 /* If we are halted, don't do anything */ | 898 /* If we are halted, don't do anything */ |
899 if(this->stopped) | 899 if(this->stopped) |
900 return; | 900 return; |
901 | |
902 if (this->c.int_pending == 255) { | |
903 this->c.int_pending = int_level; | |
904 return; | |
905 } else { | |
906 int_level = this->c.int_pending; | |
907 } | |
901 | 908 |
902 /* Acknowledge the interrupt */ | 909 /* Acknowledge the interrupt */ |
903 this->c.int_ack = int_level; | 910 this->c.int_ack = int_level; |
911 this->c.int_pending = 255; | |
904 | 912 |
905 vector = M68K_INT_ACK_AUTOVECTOR;//int_ack_callback(*this, int_level); | 913 vector = M68K_INT_ACK_AUTOVECTOR;//int_ack_callback(*this, int_level); |
906 | 914 |
907 /* Get the interrupt vector */ | 915 /* Get the interrupt vector */ |
908 if(vector == M68K_INT_ACK_AUTOVECTOR) { | 916 if(vector == M68K_INT_ACK_AUTOVECTOR) { |