From f363d8018be4441b5ef45f31557b0bde3326460e Mon Sep 17 00:00:00 2001 From: user Date: Fri, 1 Sep 2023 04:52:29 -0500 Subject: [PATCH] Remove AOUT bytecode instruction All the PWM-capable pins will be used for other things in my final design, so no need for this in my application. --- asm_2/bytecode.txt | 2 +- asm_2/interp.asm | 11 +---------- asm_2/tbc.inc | 10 ---------- 3 files changed, 2 insertions(+), 21 deletions(-) diff --git a/asm_2/bytecode.txt b/asm_2/bytecode.txt index 69069c6..73fbb22 100644 --- a/asm_2/bytecode.txt +++ b/asm_2/bytecode.txt @@ -74,7 +74,7 @@ FXYN 2XYC din 2XYD dout 2XYE ain -2XYF aout +2XYF v[x], v[y]+n 3XYn ldb diff --git a/asm_2/interp.asm b/asm_2/interp.asm index 6589817..fe3a7e1 100644 --- a/asm_2/interp.asm +++ b/asm_2/interp.asm @@ -549,7 +549,7 @@ imm4_dispatch_jumptable: rjmp exec_din rjmp exec_dout rjmp exec_ain - rjmp exec_aout + rjmp exec_nop branch_dispatch_jumptable: rjmp exec_jtab @@ -1489,15 +1489,6 @@ _ain_wait: rjmp _dispatch_done_writeback_reg -exec_aout: - ; Restrict operand to 0-f - ldi r25, 0x0f - and r10, r25 - - ; TODO: PWM output - rjmp _dispatch_done - - exec_ldb: ; Load byte movw ZL, r10 diff --git a/asm_2/tbc.inc b/asm_2/tbc.inc index 4035615..0809eca 100644 --- a/asm_2/tbc.inc +++ b/asm_2/tbc.inc @@ -546,16 +546,6 @@ .dw (0x2 << 12) | (@0 << 8) | (@1 << 4) | (0xe) .endmacro -.macro T_AOUT - .if @0 < 0 || @0 > 0xf - .error "Tortoise Bytecode: invalid variable register" - .endif - .if @1 < 0 || @1 > 0xf - .error "Tortoise Bytecode: immediate value outside 4-bit range" - .endif - .dw (0x2 << 12) | (@0 << 8) | (@1 << 4) | (0xf) -.endmacro - .macro T_NEG T_NOT @0 T_ADDS @0, 1 -- 2.43.0