Fix setting ins/data flag in bus error trap

This commit is contained in:
pjht 2024-03-14 13:37:24 -05:00
parent 0653fc3330
commit bf4d005ddd
Signed by: pjht
GPG Key ID: CA239FC6934E6F3A

View File

@ -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)?;