View Single Post
Old 20 August 2017, 15:01   #4
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,480
Quote:
Originally Posted by jotd View Post
I suspected so. Thanks.

I could substract the size to A4 and add it just before unlk then.
Yes.

However there is an alternative that I often use: directly use A7 as the BASE register.
So simply:
Code:
    lea -gl_SIZEOF(a7),a7

  if needed
  {
    move.l    a7,A3
    move.l    #gl_SIZEOF/4-1,d1
.clr
    clr.l    (a3)+
    dbf        d1,.clr
  }
 ...
    move.l    (A1)+,(gl_chipptr,a7)
You need to have a total control over subroutine call nesting!
LINK is for high level languages where the subroutine calls is not known at priori..

You even gain a spare A register

Bye,
ross
ross is offline  
 
Page generated in 0.04703 seconds with 10 queries