SNAPKITTYWEST's picture
October 2026 main drop: mirror from GitHub
c01fd1c verified
Raw History Blame Contribute Delete
192 Bytes
; Sum 1..=5 into R1 using a countdown loop, then halt.
MOVI R1, 0 ; accumulator
MOVI R2, 5 ; counter
loop:
ADD R1, R2
DEC R2
CMP R2, R0
JG loop
HALT