def test_circular(): circular = "" for i in original: circular += disassemble(i) + "\n" print(circular) code2 = Assembler(data=circular) code2.assemble() code2.display()
JULT pwmon pwmoff: STX R0, R0, 0 J pwmdone pwmon: STX R1, R0, 0 pwmdone: SUBI R2, 1 JNZ breathe J loop """ code = Assembler(debug=True, data=as_string) code.assemble() print("---------- display ---------") code.display() print("---------- display end ---------") print() assembled = code.code original = [ 0, 0, 0, 0, 0, 0, 0, 0, *assemble([ NOP(),