10 lines
342 B
NASM
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
|