Re: A82: Definition help
[Prev][Next][Index][Thread]
Re: A82: Definition help
In a message dated 98-05-30 11:17:45 EDT, you write:
> In a message dated 98-05-30 07:17:41 EDT, you write:
>
> > .define text(x,y,string) ld hl,(x*256)+y \ ld (GRAF_CURS),hl \ ld
> > hl,string \ call DISPLAY_STRING
>
> ld hl,(x*256)+y is your problem, you can't use * and + in asm, and all a
> define does is substitute those words when it finds the other words. so
What
> you have to do is sl x/sl x/ slx/sl x/sl x/add x,y I think, but it might be
> sra I forget
no, because x and y are TASM variables that are substituted with values on
compilation. you can use regular math operators on constants that disappear
after the program is compiled.
~Adamman