Jump to content
Sign in to follow this  
Allas

Force no-basic reset

Recommended Posts

A user start up the computer with basic (no OPTION button pressed), after that loads a ML program.

 

Exists a way this ML program detect the Basic and disable for use all the memory like if the computer had been turned on pressing OPTION key?

 

Mario

Share this post


Link to post
Share on other sites

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).

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
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

 

Exactly. And re-calculating the ROM checksum.

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.

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...