Re: A89: Address Error


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

Re: A89: Address Error




TurboSoft@aol.com wrote:
> 
> In a message dated 12/6/98 3:43:55 AM Eastern Standard Time,
> deadmeat39@usa.net writes:
>>  print_d0 MACRO
>>  bsr print_value
>>  move.w  \3,-(a7)
>>  move.l  a0,-(a7)
>>  move.w  \2,-(a7)
>>  move.w  \1,-(a7)
>>  jsr     doorsos::DrawStrXY
>>  lea 10(a7),a7
>>  ENDM
> 
> l could be wrong, because l don't know much about asm, but l don't think
it's
> a good idea to have a bsr within a macro.  that could be the problem.

That's no problem, the macro is only seen by the preprocessor, which
substitutes any macro calls with the code (putting in the parameters where
they belong).

-- 
  /Johan Rönnblom, Team Amiga


References: