1
0

emualtor working

This commit is contained in:
Aiden
2026-05-25 21:00:25 +10:00
parent 3ab79648ff
commit 752148c585
22 changed files with 588 additions and 22 deletions

View File

@@ -207,8 +207,9 @@ class H8536Emulator:
if op in (0x06, 0x07):
value = raw[-1] if op == 0x06 else int.from_bytes(raw[-2:], "big")
self._write_ea(ea, value, 1 if op == 0x06 else 2)
self._set_logic_flags(value, 1 if op == 0x06 else 2)
write_size = size if op == 0x06 else 2
self._write_ea(ea, value, write_size)
self._set_logic_flags(value, write_size)
return next_pc
base = op & 0xF8