]> git.the-white-hart.net Git - atmega/siggen.git/commitdiff
Remove AOUT bytecode instruction
authoruser <none>
Fri, 1 Sep 2023 09:52:29 +0000 (04:52 -0500)
committeruser <none>
Fri, 1 Sep 2023 09:52:29 +0000 (04:52 -0500)
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
asm_2/interp.asm
asm_2/tbc.inc

index 69069c6c930ca5c073f833b12275e2b50099b8f9..73fbb2284c66ad8368187479cdf9c1fd5af6da5d 100644 (file)
@@ -74,7 +74,7 @@ FXYN
 2XYC   din
 2XYD   dout
 2XYE   ain
-2XYF   aout
+2XYF
 
                v[x], v[y]+n
 3XYn   ldb
index 6589817f677c352d332f51f46fba691d72a640b8..fe3a7e1aa4be38cdda3befad66d18f17289d7e44 100644 (file)
@@ -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
index 40356152f04015907d4e8c0d094c9c7ce299747f..0809ecaa9a5c12d562f260e48e8b3cadafd91a1f 100644 (file)
        .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