A85: Hey! Another dumb question from yours TRULY! :-D


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

A85: Hey! Another dumb question from yours TRULY! :-D




This may sound dumb... BUT:

OK, if I have predefined memory:
Object:
.db x, y, z

And I load the x value into the A register, then manipulate it, can I save it
BACK to the location I got it from by doin somethin like:

LD (HL), A  ;<--assuming HL points to the byte that I originally loaded.

The reason I'm asking this is b/c:
In my mind predefining memory in .db statements prevents all of the
possibility of overwriting the statements, because it's already STATED.  But
when I thought of this in ACTUALITY all that a .db statement is in a string is
a string of sequenced data, so theoretically it SHOULD be able to be
overwritten.  Am I schizophrenic?  Do I need help?  Somebody HELP me!  =-|~~~

-Josh Morris
 DorkReMi@aol.com


Follow-Ups: