Re: A83: Plain Jump


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

Re: A83: Plain Jump




On 29-Sep-98, Evil Sam wrote:

>>There's a rom call that creates a program:
>>
>>createprog =$448A ; create program with type/name in op1 with hl bytes
>>
>>btw, I'm just too lazy to make an editor for my programs hehe
>>
>>Joe Wingbermuehle
>>http://www.usmo.com/~joewing/
>>


>   What do you mean by name/type? Like this?:
>CreateProg:
> ld     de,NameProg
> ld     (OP1),de
> ld     hl, 260
> jp   $448a

>NameProg:
> .db "planlvl1",0

>   That doesn't work. Is there a certain way I need to load the name 
>into OP1?

>______________________________________________________
>Get Your Private, Free Email at http://www.hotmail.com

You never put addresses in the OPs. You need to copy the whole name there, and
the name must start with a 5, which is the type for program objects.

ld hl,NameProg
ld de,OP1
ld bc,8 ;length
ldir

...

NameProg .db 5,"PLANLVL1",0

Linus


References: