I'm working on a program for Intel 8080 right now and I don't really get how the space we can reserve for variables work. Namely, let's say we do test DB 80
. Can I later somehow decrement or increment the variable test
for example or do I have to declare it anew?
INR M
instruction increments the byte content of the memory address pointed by HL register. So you can basically:
LXI H, test
INR M