[comp.sys.amiga.tech] Blink problem solved

a186@mindlink.UUCP (Harvey Taylor) (05/29/90)

    You may remember I had run into an odd problem that was causing
 Blink to guru. The problem was that I was using PC relative branches
 between the two hunks. Once I changed my BSRs to JSRs the problem
 went away.
   <-Harvey

        PS.
        This code demonstrates the effect.
*
*       Split Segment Test
*
*****************************
*
                SECTION SS00,CODE,CHIP
                NOLIST
*
START           JSR     _MAIN           *  Change this line to BSR
*                                       *            to demonstrate BLINK crash
                RTS
*
                SECTION SS01,BSS,FAST
*
SS_DATA         DS.L    64
*
                SECTION SS02,CODE,FAST
*
_MAIN           MOVEQ   #0,D0
                RTS
*
                SECTION SS03,DATA,FAST
*
                DC.B    "HELLO!",0
*
                END


"The two most common things in the universe are hydrogen and stupidity."
                                                        -Ellison
      Harvey Taylor      Meta Media Productions
       uunet!van-bc!rsoft!mindlink!Harvey_Taylor
               a186@mindlink.UUCP