A86: Adding numbers


[Prev][Next][Index][Thread]

A86: Adding numbers




I have a question:
I am making a program, and I have 10000 stored in money:
money:
.db $27,$10
then, in my program, I want to add 10 to it. This is what I did:
ld hl,(money)
ld de,$A
add hl,de
ld (money),hl

But, it doesn't work. I've tried many things. Am I doing something wrong?
Thanks!



Follow-Ups: