6502-sim/test/ana2.asm
2023-06-15 17:08:20 +00:00

10 lines
342 B
NASM

;; task
;; - there are an unknown quantity of numbers, anything between 1 and 99 (dec)
;; - the `quantity` is stored at address 0
;; - the numbers are stored at addresses 1 to (1 + `quantity`)
;; - add all numbers together
;; - store the sum at address AF (hex)
LDX # h5
DEX i