ofoz@cbnewse.att.com (steven.s.ozdemir) (05/20/91)
I don't usually post to the Apple ][+ boards - I hope this is the right one. I understand that Apple ][+'s aren't used much anymore - I only hope that the net still has a few knowledgable people left for Apple ][+ problems. I am having difficulty interfacing my Basic program with some fast 6502 machine language routines. I've written all of the above programs (which is probably the root of the problem!). I will load the Basic program in, then load in the machine language routines into $0300 to $03ef. The machine language routines are a compression routine from $0300 to $0358, a comparison routine from $0359 to $03b0 and lastly a USR routine from $03b0 to $03ef. The args that the routines use are poked in where necessary. The data that the routines work on is located from $6000 to $9600. The USR routine works fine. But when I use a CALL to the other two machine language routines, the call returns and then BASIC traces indicate that the BASIC language continues running. I've added JSR's to SAVE and RESTORE (which are in the Autostart ROM) to the front and end of the machine language routines. The problem still persists. Any suggestions? Write me at ofoz@ihlpb.att.com. I'll be happy to provide more details if you do not have enough information.
ART100@psuvm.psu.edu (Andy Tefft) (05/21/91)
Reading that, I don't see that there is a problem at all. After you call a routine, you get returned to basic? Isn't that what you expected? How about some more info.