Gestion DT

This commit is contained in:
BalkisJerad 2026-03-21 20:54:39 +01:00
parent eb834b8f72
commit f28819d288
19 changed files with 16 additions and 22 deletions

View File

@ -70,12 +70,10 @@ class Simulator:
extra_cycles = 0 # pour LDR/STR/TIM extra_cycles = 0 # pour LDR/STR/TIM
# --- instructions 2 octets à opcode fixe --- # --- instructions 2 octets à opcode fixe ---
#print(pc_before) #if c.after_ret:
#print(self.program_size) # instr = f"DB 0x{b:02X}"
if c.after_ret:
instr = f"DB 0x{b:02X}"
elif b == 0x00: # CALL _label if b == 0x00: # CALL _label
addr = self.fetch_byte() addr = self.fetch_byte()
size = 2 size = 2
instr = f"CALL {addr}" instr = f"CALL {addr}"
@ -206,14 +204,10 @@ class Simulator:
pause_ms = mult * (v + 1) pause_ms = mult * (v + 1)
c.cycles += pause_ms # modélisation de la pause c.cycles += pause_ms # modélisation de la pause
# if pc_before >= self.program_size:
# if 32 <= b <= 126:
# instr = f"DB 0x{b:02X} ('{chr(b)}')"
# else:
# instr = f"DB 0x{b:02X}"
else: else:
instr = f"UNKNOWN 0x{b:02X}" instr = f"DB 0x{b:02X}"
c.running = False # instr = f"UNKNOWN 0x{b:02X}"
# c.running = False

Binary file not shown.

View File

@ -1 +1 @@
<EFBFBD>˙a“z<E2809C>BX0“9 <EFBFBD>˙a“z<E2809C>BX0“9

Binary file not shown.

View File

@ -1 +1 @@
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz

View File

@ -1 +1 @@
ABCDEFGHIJKLMNOPQRSTUVWXYZ ABCDEFGHIJKLMNOPQRSTUVWXYZ

View File

@ -1 +1 @@
0123456789 0123456789

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
PQRSTUVWXYZ[\]^_ PQRSTUVWXYZ[\]^_

View File

@ -1 +1 @@
<EFBFBD><01><><EFBFBD>a<EFBFBD>z<EFBFBD>B<EFBFBD>X<EFBFBD>0<EFBFBD>9 <EFBFBD><01><><EFBFBD>a<EFBFBD>z<EFBFBD>B<EFBFBD>X<EFBFBD>0<EFBFBD>9<EFBFBD>

View File

@ -1 +1 @@
πρςσ πρςσ

View File

@ -1 +1 @@
`abc `abc<EFBFBD>

Binary file not shown.

View File

@ -1 +1 @@
ΠΡ<EFBFBD>ΣΤΥΦΧΨΩΪΫάέήί ΠΡ<EFBFBD>ΣΤΥΦΧΨΩΪΫάέήί

View File

@ -1 +1 @@
˙azBX09 ˙azBX09

Binary file not shown.