Make move from SR privileged
This commit is contained in:
parent
74584bc076
commit
44f821b12e
@ -540,6 +540,10 @@ impl M68K {
|
||||
self.write_effective(dst, u32::from(self.sr & 0xFF), Size::Word)?;
|
||||
}
|
||||
Instruction::MoveFromSr(dst) => {
|
||||
if !self.is_supervisor() {
|
||||
self.trap(8)?;
|
||||
return Err(InsExecError::AbnormalTrap);
|
||||
}
|
||||
self.write_effective(dst, u32::from(self.sr), Size::Word)?;
|
||||
}
|
||||
Instruction::MoveToCcr(src) => {
|
||||
|
Loading…
Reference in New Issue
Block a user