WORM Solution
BURST TAIL
WORM row 5

Prerequisites
Unlocks
w24 solved
Active cores1, 4, 7
Program lines13
DetailWORM row 5
Walkthrough
BURST TAIL: emit the last value of each zero-terminated burst.
Last nonzero value held in BAK; a 0 closes the burst and emits it, then resets.
Rack Solution
# BURST TAIL: emit the last value of each zero-terminated burst.
# Last nonzero value held in BAK; a 0 closes the burst and emits it, then resets.
@1
L: MOV ACC, UP
JZ E
SAV
JMP L
E: XCH
JZ L
MOV DOWN, ACC
JMP L
@4
MOV DOWN, UP
@7
MOV DOWN, UP