Jump to content
IGNORED

Force no-basic reset


Allas

Recommended Posts

Location $3F8 (1016) BASICEN - 0=enable BASIC, $FF=disable BASIC (processed on warmstart).

 

Location $3FA (1018) GINTLK - Cartridge interlock. 0=no cartridge. 1=there is a cartridge loaded, so RAM can't be enabled in the BASIC address space.

 

$D301 (54017) - PORTB - Memory select on XL/XE. bit 1=1 disables BASIC ROM.

 

So, in your boot loader:

LDA $D301
ORA #2
STA $D301; disable BASIC
LDA #0
STA $3F8; switch out BASIC next RESET

 

Note that if BASIC is enabled that the top of memory pointer (and screen memory) will be around the 40K mark.

All of this only applies to XL/XE machines. It's probably best do a test for RAM around $BF00 after running that code (just store and test 2 different values at that location).

Link to comment
Share on other sites

Thanks for that information; I've been looking for something like this.

 

On a related note ... is it possible to reverse the function of the OPTION key (only enable BASIC if it is held down and disable it if it is not) instead of disabling it outright? I'm thinking it's probably something as simple as finding out where it checks the status of OPTION and changing a BNE to a BEQ (or vice-versa) afterwards, but I haven't had the chance to try it myself. I've only played around with assembly on the A8 computers long enough to disable copy-protection on AtariWriter Plus. :)

Edited by jaybird3rd
Link to comment
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...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...