-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from brad-colbert/disable_basic
v1.3.4: Disables BASIC on systems where this can be an issue.
- Loading branch information
Showing
3 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.export pre_init | ||
.include "atari.inc" | ||
; .include "macros.inc" | ||
|
||
; https://github.com/markjfisher/fujinet-config-ng/blob/master/src/atari/common/init/pre_init.s | ||
|
||
; this segment is loaded during disk load before dlist and main are loaded | ||
; the memory location will be written over by later blocks, which is fine, it's only needed for one time initial setup | ||
.segment "INIT" | ||
.proc pre_init | ||
lda #$c0 ; check if ramtop is already ok | ||
cmp RAMTOP | ||
beq ramok | ||
sta RAMTOP ; set ramtop to end of basic | ||
sta RAMSIZ ; and ramsiz too | ||
|
||
lda PORTB | ||
ora #$02 ; disable basic bit | ||
sta PORTB | ||
|
||
lda #$01 ; keep it off after reset | ||
sta BASICF | ||
|
||
ldx #$02 ; CLOSE "E" | ||
jsr editor | ||
ldx #$00 ; OPEN "E" | ||
editor: | ||
; dispatch based JMP! | ||
lda EDITRV+1, x | ||
pha | ||
lda EDITRV, x | ||
pha | ||
; now ready to JMP on a RTS | ||
ramok: | ||
rts | ||
|
||
clear_from: | ||
.endproc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters