-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finish surl_stream_av asm, allow 'C' to mention people in Mastodon
- Loading branch information
1 parent
d2d0147
commit 0e3d9b9
Showing
38 changed files
with
534 additions
and
310 deletions.
There are no files selected for viewing
Binary file not shown.
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,85 @@ | ||
; | ||
; Copyright (C) 2022-2024 Colin Leroy-Mira <[email protected]> | ||
; | ||
; This program is free software; you can redistribute it and/or modify | ||
; it under the terms of the GNU General Public License as published by | ||
; the Free Software Foundation; either version 3 of the License, or | ||
; (at your option) any later version. | ||
; | ||
; This program is distributed in the hope that it will be useful, | ||
; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
; GNU General Public License for more details. | ||
; | ||
; You should have received a copy of the GNU General Public License | ||
; along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
; | ||
.export _init_hgr | ||
.export _init_text | ||
.export _hgr_mixon | ||
.export _hgr_mixoff | ||
.export _hgr_init_done | ||
.export _hgr_mix_is_on | ||
|
||
.data | ||
|
||
_hgr_init_done: .byte 0 | ||
_hgr_mix_is_on: .byte 0 | ||
|
||
.segment "LOWCODE" | ||
|
||
_init_hgr: | ||
.ifdef IIGS | ||
cmp #$00 | ||
bne @color_set | ||
|
||
lda #$80 | ||
sta $C021 ; MONOCOLOR | ||
lda $C029 ; NEWVIDEO | ||
ora #$20 ; set bit 5 | ||
sta $C029 | ||
bne @color_set | ||
|
||
lda #$00 | ||
sta $C021 ; MONOCOLOR | ||
lda $C029 ; NEWVIDEO | ||
and #$DF ; clear bit 5 | ||
sta $C029 | ||
.endif | ||
@color_set: | ||
|
||
lda #$20 | ||
sta $E6 ; HGRPAGE | ||
|
||
; Set HGR mode | ||
bit $C000 ; 80STORE | ||
bit $C050 ; TXTCLR | ||
bit $C052 ; MIXCLR | ||
bit $C057 ; HIRES | ||
bit $C054 ; LOWSCR | ||
|
||
ldx #1 | ||
stx _hgr_init_done | ||
dex | ||
stx _hgr_mix_is_on | ||
rts | ||
|
||
_init_text: | ||
bit $C054 ; LOWSCR | ||
bit $C051 ; TXTSET | ||
bit $C056 ; LORES | ||
lda #0 | ||
sta _hgr_init_done | ||
rts | ||
|
||
_hgr_mixon: | ||
bit $C053 | ||
lda #1 | ||
sta _hgr_mix_is_on | ||
rts | ||
|
||
_hgr_mixoff: | ||
bit $C052 | ||
lda #0 | ||
sta _hgr_mix_is_on | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include "hgr.h" | ||
|
||
char hgr_init_done = 0; | ||
char hgr_mix_is_on = 0; | ||
|
||
#ifndef __CC65__ | ||
#include "tgi_compat.h" | ||
|
||
void init_hgr(uint8 mono) { | ||
tgi_init(); | ||
} | ||
void init_text(void) { | ||
tgi_done(); | ||
} | ||
|
||
#endif |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -20,3 +20,6 @@ PAGE1_HB = PAGE0_HB | |
.endif | ||
|
||
SPKR := $C030 | ||
|
||
VIDEOMODE_40COL = $11 | ||
VIDEOMODE_80COL = $12 |
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
Oops, something went wrong.