campctf2023-chall-tis256

Zachtronics TIS100-inspired reversing challenge for CampCTF 2023
git clone https://git.sinitax.com/sinitax/campctf2023-chall-tis256
Log | Files | Refs | Submodules | README | sfeed.txt

test_mov_swp.asm (403B)


      1tpu X0 Y0
      2	## ${ADDR_TESTER}
      3
      4	mov ${ADDR_INST_MOV}, RIGHT
      5	mov ${ADDR_TESTER}, RIGHT
      6	mov ${OP_NIL}, RIGHT
      7	mov 0x00, RIGHT
      8	mov 0x01, RIGHT
      9
     10	mov UP, NIL
     11	mov UP, NIL
     12	mov UP, NIL
     13	mov UP, NIL
     14
     15	mov ${ADDR_INST_SWP}, RIGHT
     16	mov ${ADDR_TESTER}, RIGHT
     17	mov ${OP_NIL}, RIGHT
     18	mov 0x02, RIGHT
     19	mov 0x03, RIGHT
     20
     21	mov UP, NIL
     22	mov UP, NIL
     23	mov UP, NIL
     24	mov UP, NIL
     25
     26	${HLT}
     27end
     28
     29tpu X1 Y0
     30	mov LEFT, UP
     31end