; Minimal LIFE-stage action example. ; ; Assemble/link: ; ../utils/mcpu-as -o life-print.o life-print.s ; ../utils/mcpu-ld -o life-print --stack-size=1K life-print.o ; ; Run three LIFE cycles and print two registers on one line after each END: ; ../utils/mcpu-run \ ; --steps=3 \ ; --on-step=print-int-regs:r64@0x00000,r64@0x00008 \ ; -- \ ; life-print ; ; Expected output: ; 1 10 ; 2 20 ; 3 30 .text _start_life: LDI r64@0x00000, 1 LDI r64@0x00008, 10 LDI r64@0x00010, 1 LDI r64@0x00018, 10 loop: END IADD r64@0x00000, r64@0x00000, r64@0x00010 IADD r64@0x00008, r64@0x00008, r64@0x00018 JMP loop