Skip to content

Commit 7eec001

Browse files
fix instruction: move reg, reg
(assuming binutils-esp32 produces correct binary)
1 parent 82be029 commit 7eec001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esp32_ulp/opcodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def i_move(reg_dest, reg_imm_src):
423423
if src.type == REG:
424424
_alu_reg.dreg = dest
425425
_alu_reg.sreg = src.value
426-
_alu_reg.treg = 0
426+
_alu_reg.treg = 1 # XXX undocumented, this is the value binutils-esp32 uses
427427
_alu_reg.unused = 0
428428
_alu_reg.sel = ALU_SEL_MOV
429429
_alu_reg.sub_opcode = SUB_OPCODE_ALU_REG

0 commit comments

Comments
 (0)