We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 926c31b commit 4e351a2Copy full SHA for 4e351a2
1 file changed
CPU.py
@@ -71,7 +71,7 @@ def Decoder(self):
71
72
# Opcode 0b0000011 - Tipo I (LOAD)
73
if opcode == 0x03:
74
- addr = self.regs[rs1] + imm_i
+ addr = self.correcao_dtamanho(self.regs[rs1] + imm_i)
75
76
if funct3 == 0x0: # LB (Load Byte)
77
val = self.barramento.leia(addr, 8)
0 commit comments