Re: A86: Strings


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

Re: A86: Strings




At 05:28 PM 11/15/98 PST, you wrote:
>
>Ok i was trying to save memory by putting a group of strings under one 
>header so i could call a routine that would go trough and display all of 
>the strings but when i 
>inc hl 
>it would move to the next char in the string not down.

inc hl only makes hl point to the next byte, which is the next letter. You
would have to add 6 to hl in order to skip past "TI-86",0. Once for each
letter, then once for the 0-terminating byte.

Good luck :)
Dave

>
>it would look like this
>
>Ti-86
>i-86
>
>How would i get it to look like this?
>
>TI-86
>asm
>
>String:
> .db "Ti-86",0
> .db "asm",0
>
>Thanx
>
>______________________________________________________
>Get Your Private, Free Email at http://www.hotmail.com
>
>


Follow-Ups: References: