Re: A86: More (sqrt) KEY questions


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

Re: A86: More (sqrt) KEY questions




Matt Johnson wrote:
> 
> > > There is still an error, even with the -2 part. It works best when you
> > > remove it all together,
> > >  I think it is because you cant have two .org addresses starting at
> $D748,
> > > how would it know where to jump?
> >
> > I'm not having any problems.  What are you using to compile?
> 
> Oh, dont get me wrong, it compiles great. What the problem is it that when
> you run it it totally F!@#'s up the calculator..I think it is because that
> you cannot have two .ORG's in one asm file, and hell, they are both
> pointing to $D748. How would the compiler know which .ORG to use. I think
> it uses the first, thus screws it up. It works great without the .ORG
> statement, since after the code: label,  most people just use jr's anyway
> 
> -Matt

No, you can.  Every label after the first .org is offset from the first
.org.  Everything after the second is offset from the second.  You must
be doing something else wrong... I just compiled yugi2 using two .orgs
and it worked just like it was supposed to.


References: