Path: utzoo!attcan!uunet!husc6!m2c!wpi!ggray From: ggray@wpi.wpi.edu (Gary Gray) Newsgroups: comp.sys.apple Subject: Re: Assembler FP routine usage Message-ID: <3255@wpi.wpi.edu> Date: 15 Jul 89 21:42:20 GMT References: <354*rdlanctot@instr.okanagan.bc.ca> Reply-To: ggray@wpi.wpi.edu (Gary Gray) Organization: Worcester Polytechnic Institute, Worcester, MA. USA Lines: 22 While we are on the subject of Assembler and FP, I have another question. I am trying to use the FP routines from a SYS application, i.e. no Basic.system in sight. Th problem is, these routines bomb out, apparently due to the fact that basic system sets up some pointers somewhere for the routines use. I got a code fragment from A2PRO.ERIC on GEnie, but the code does nothing helpful. What it does is store the locations of $36 and $37 and replace them with the memory address of one of the labels in the code. It then jumps to $E000. At some point, I imagine, the Applesoft setup routine does a relative jump from locations $36 & $37, which will dump it back into the code fragment. The code then restores the contents of $36 and $37 and ends. I believe that location $E000 is a cold restart. I also tried jumping to location $E003, which is a warm restart. The end result, though, is the same, attepmting to run the code from merlin fails. I am quite sure that this problem is not with merlin, but with the routines themselves. Anybody got any suggestions? Thanks WARNING!! the opinions expressed above can be HAZARDOUS or FATAL if swallowed! I mean, does anybody *really* care what pithy saying I put in here? Gary Gray - inet ggray@wpi.wpi.edu - bitnet ggray@wpi.bitnet - GEnie G.GRAY6