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


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

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




yep, works fine... example:

ld hl,Variable
ld a,(hl)
add a,20
ld (hl),a		;Variable now has 22
...

Variable:
.db 2

-mike pearce

On Thu, 23 Apr 1998 19:58:50 EDT, you wrote:

>
>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: References: