For my asm program I am writing, I need to know how to add to copy one program into another. This is my code so far:
Code:
Code:
ld hl,Prog
bcall Mov9toOP1
bcall ChkFindSym
jp c, nf ;if not found
xor a
ex de,hl
Loop:
inc a
push hl
;copy byte from (hl+a) to (appBackupscreen+a)
;cp a,(the size of program)
jp z,end
jp nz,Loop
nf:
;store 10 in Ans
ret
end:
ret
Prog:
.db ProgObj,"TEMP",0