Re: A82: Definition help


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

Re: A82: Definition help




At 07:14 1998-05-30 -0400, you wrote:
>
>This is a definition from mines82.asm by Wouter Demuynck:
>
>#define TEXT_ZM(Xloc,Yloc,Addr) .db %00100001 \ .db Xloc,Yloc \ LD
>(CURSOR_X),hl \ .db %00100001 \ .dw Addr \ ROM_CALL(D_ZM_STR)
>
>Evidently this works, since he must have been able to compile a working
>game with it.
>
>This is my definition:
>
>.define text(x,y,string) ld hl,(x*256)+y \ ld (GRAF_CURS),hl \ ld
>hl,string \ call DISPLAY_STRING
>
>DISPLAY_STRING:
>	ROM_CALL(D_ZM_STR)
>	ret
>
>Mine does not work. Why? Anyone?

How do you use your macro?

I think this should work:
  text(10, 10, mystring)

mystring:
	.db "My string",0


Sincerely,
                       -/- David Eriksson -/-

CalcEm - The Calculator Emulator  ->  http://www.2goodsoft.com/calcem/


References: