Gestion DT
This commit is contained in:
+6
-12
@@ -70,12 +70,10 @@ class Simulator:
|
||||
extra_cycles = 0 # pour LDR/STR/TIM
|
||||
|
||||
# --- instructions 2 octets à opcode fixe ---
|
||||
#print(pc_before)
|
||||
#print(self.program_size)
|
||||
if c.after_ret:
|
||||
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()
|
||||
size = 2
|
||||
instr = f"CALL {addr}"
|
||||
@@ -206,14 +204,10 @@ class Simulator:
|
||||
pause_ms = mult * (v + 1)
|
||||
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:
|
||||
instr = f"UNKNOWN 0x{b:02X}"
|
||||
c.running = False
|
||||
instr = f"DB 0x{b:02X}"
|
||||
# instr = f"UNKNOWN 0x{b:02X}"
|
||||
# c.running = False
|
||||
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
�‘˙’a“z�B‘X’0“9
|
||||
�‘˙’a“z�B‘X’0“9€
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
abcdefghijklmnopqrstuvwxyz
|
||||
abcdefghijklmnopqrstuvwxyz
|
||||
@@ -1 +1 @@
|
||||
ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||
ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||
@@ -1 +1 @@
|
||||
0123456789
|
||||
0123456789€
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
PQRSTUVWXYZ[\]^_
|
||||
PQRSTUVWXYZ[\]^_
|
||||
@@ -1 +1 @@
|
||||
����a�z�B�X�0�9
|
||||
����a�z�B�X�0�9�
|
||||
@@ -1 +1 @@
|
||||
��
|
||||
πρςσ€
|
||||
@@ -1 +1 @@
|
||||
`abc
|
||||
`abc�
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
ΠΡ�ΣΤΥΦΧΨΩΪΫάέήί
|
||||
ΠΡ�ΣΤΥΦΧΨΩΪΫάέήί€
|
||||
@@ -1 +1 @@
|
||||
˙azBX09
|
||||
˙azBX09€
|
||||
Binary file not shown.
Reference in New Issue
Block a user