Fix setting ins/data flag in bus error trap
This commit is contained in:
parent
0653fc3330
commit
bf4d005ddd
@ -1822,8 +1822,8 @@ impl M68K {
|
|||||||
let special_status_word = (u16::from(bus_error.cause.is_write()) << 8)
|
let special_status_word = (u16::from(bus_error.cause.is_write()) << 8)
|
||||||
| (u16::from(bus_error.cause.is_byte()) << 9)
|
| (u16::from(bus_error.cause.is_byte()) << 9)
|
||||||
| (((bus_error.address & 0x1) as u16) << 10)
|
| (((bus_error.address & 0x1) as u16) << 10)
|
||||||
| u16::from(!ins)
|
| (u16::from(!ins) << 12)
|
||||||
| u16::from(ins);
|
| (u16::from(ins) << 13);
|
||||||
self.push(u32::from(special_status_word), Size::Word)?;
|
self.push(u32::from(special_status_word), Size::Word)?;
|
||||||
// Format & vector
|
// Format & vector
|
||||||
self.push(0x8002, Size::Word)?;
|
self.push(0x8002, Size::Word)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user