forked from FujiNetWIFI/fujinet-yail
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Added a VBI that sets ATRACT (0x4D) to 0. Disables the screen saver color rotation. 2. Added some more checks to the get_settings code that, if sio_openkey returns 0, we just set defaults. This can happen if there is no FN or (I'm assuming) the FN has no SD card. 3. The server did not have a timeout set for the request call. This could cause the server to hang, waiting for a response from the URL. Timeout is now 30 but probably could make it shorter.
- Loading branch information
Showing
7 changed files
with
83 additions
and
34 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
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,33 @@ | ||
;; Simple VBI routine to disable the attract mode | ||
|
||
.export _add_attract_disable_vbi | ||
.export disable_atract | ||
|
||
.segment "DATA" | ||
|
||
.segment "CODE" | ||
|
||
;; An interupt routine for the VBI | ||
SETVBV = $E45C | ||
XITVBV = $E462 | ||
SYSVBV = $E45F | ||
ATRACT = $4D | ||
|
||
; Disable ATRACT mode by setting the "register" to zero | ||
.PROC disable_atract | ||
pha | ||
lda #0 | ||
sta ATRACT | ||
pla | ||
jmp SYSVBV | ||
.ENDPROC | ||
|
||
_add_attract_disable_vbi: | ||
|
||
lda #6 ; Immediate mode | ||
ldy #<disable_atract ; hight byte of address | ||
ldx #>disable_atract ; low byte of address | ||
jsr SETVBV | ||
|
||
rts | ||
|
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
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