Re: A86: Efficiency Problem


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

Re: A86: Efficiency Problem




In a message dated 12/11/98 9:18:09 PM Pacific Standard Time, AAmeise@aol.com
writes:

> So how come at 
>  >   cp 0
>  >   call z,Wp1
>  you don't put 
>  >   cp 0
>  >   call z,.db "AOL Disk",0
>  Can you do this or do you have to go through all of that?
>  -Ameise

You can't define data in the program. It has to be pointed to. When you do a
 ld hl,Wp1
It puts the address of "AOL Disk" into hl. When _puts is called, it looks for
the address that hl is at and it reads until it reaches the zero byte, which
is the ,0 at the end of "AOL Disk". Make sense yet? :)