Re: A83: hl / (hl) ???


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

Re: A83: hl / (hl) ???




In a message dated 1/27/2000 12:17:31 PM Eastern Standard Time, 
marcputs@hetnet.nl writes:

<< What's the difference between hl and (hl) ?
  >>
hl is the registry, (hl) is the memory address stored in hl.

A better way:


    ld hl, string
string:
.db "string",0

Here, when you load string to hl, hl is actually the loacation of string in 
memory.
(hl) is the string


    ld hl, 25

Now, hl is 25, and (hl) would be some place in memory that most likely you 
dont care about.

Jeff Barrett