Gestion DT
This commit is contained in:
parent
eb834b8f72
commit
f28819d288
18
Epreuve3.py
18
Epreuve3.py
@ -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.
@ -1 +1 @@
|
|||||||
<EFBFBD>‘˙’a“z<E2809C>B‘X’0“9
|
<EFBFBD>‘˙’a“z<E2809C>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 @@
|
|||||||
<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>
|
||||||
@ -1 +1 @@
|
|||||||
πρςσ
|
πρςσ€
|
||||||
@ -1 +1 @@
|
|||||||
`abc
|
`abc<EFBFBD>
|
||||||
Binary file not shown.
@ -1 +1 @@
|
|||||||
ΠΡ<EFBFBD>ΣΤΥΦΧΨΩΪΫάέήί
|
ΠΡ<EFBFBD>ΣΤΥΦΧΨΩΪΫάέήί€
|
||||||
@ -1 +1 @@
|
|||||||
˙azBX09
|
˙azBX09€
|
||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user