Skip to content

Latest commit

 

History

History
 
 

04-trash-world-news-tutorial-4

4: Trash World News (Tutorial 4)

Instructions

File 200 contains exactly one number, N. Create a new file in the outbox containing the numbers N through 0 in decreasing order. When you are finished, delete file 200.

For help completing this task see "Ghast Walks U Thru It" in the first issue of the zine.

Solution

XA (global)

LINK 800
GRAB 200
COPY F T
WIPE
LINK 800
MAKE
COPY T F
MARK LOOP
SUBI T 1 T
COPY T F
; TEST X = -1
TJMP LOOP
; DROP
; HALT

Results

Cycles Size Activity
305 11 2