I've been having some trouble with a Z80 assembler code and maybe you could help me out. The code is as follows:
aseg
org 3000h
start: ld A, (tops)
ld B, A
cycle: add A, B
djnz cycle
rst 38h
tops: db 3
end start
The code is supposed to add up the first n integer numbers and the number n would be taken from the memory zone of tops. Thanks for the help