Jump to content
Sign in to follow this  
retroclouds

Jump to TI-BASIC from assembly language

Recommended Posts

I'd like to jump into the TI Basic interpreter coming from an assembly language program running from cartridge space.

It's not that I want to run a specific call or so, just start the TI Basic interpreter like selecting option 1 "TI Basic" on the selection screen.

 

Is there any sample code to show how that works? Guess that I basically need to get the GPL interpreter running TI Basic at >216F  (?)

Was hoping for a vector address in the console ROM that triggers the TI Basic interpreter, but couldn't find it.

 

 

Share this post


Link to post
Share on other sites

I started this from EASYBUG with "E7D00"

So, WP was already set to >83E0.

 

From elsewhere you'll want to...

 

       LWPI >83EO
       LI   R1,>216f
       MOVB R1,@>9C02
       SWPB R1
       MOVB R1,@>9C02
       NOP
       B    @>70

You might need to CLR >837C, in some circumstances. Dunno.:dunce:

  • Like 3

Share this post


Link to post
Share on other sites
2 hours ago, HOME AUTOMATION said:
       LI   R1,>216f
       MOVB R1,@>9C02
       SWPB R1
       MOVB R1,@>9C02
       NOP
       B    @>70

Seems to work!

:)

This is pretty neat. 

Question for the GROM challenged:

We set the GROM address ?

Then branch into ROM. 

>0070 Main entry point into the GPL interpreter.

 

Are there other cool places in GROM that can be used this way?

 

 

  • Like 4

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...