-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #2352: gencon support for Aquarius+
Compile with -pragma-define:CLIB_AQUARIUS_PLUS=1 to enable aq+ code
- Loading branch information
Showing
25 changed files
with
777 additions
and
186 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
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,21 @@ | ||
; Aquarius+ port definitions | ||
; | ||
; Ports are writable + readable | ||
|
||
|
||
|
||
|
||
defc PORT_VCTRL = $e0 | ||
|
||
defc PORT_VPALSEL = $ea | ||
defc PORT_VPALDATA = $eb | ||
|
||
defc PORT_BANK0 = $f0 | ||
defc PORT_BANK1 = $f1 | ||
defc PORT_BANK2 = $f2 | ||
defc PORT_BANK3 = $f3 | ||
|
||
|
||
|
||
|
||
|
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,6 @@ | ||
|
||
|
||
|
||
|
||
defc DISPLAY = 12328 | ||
defc COLOUR_MAP = DISPLAY + 1024 |
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,5 @@ | ||
|
||
|
||
PUBLIC CRT_FONT | ||
|
||
defc CRT_FONT = 0 |
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,32 @@ | ||
|
||
SECTION code_clib | ||
|
||
PUBLIC cls_BITMAP | ||
|
||
EXTERN __aquarius_video_pagein | ||
EXTERN __aquarius_video_pageout | ||
|
||
EXTERN __aquarius_video_base | ||
EXTERN __aquarius_attr | ||
|
||
cls_BITMAP: | ||
call __aquarius_video_pagein | ||
ld hl,(__aquarius_video_base) | ||
ld de,hl | ||
inc de | ||
ld bc,+(40 * 25 * 8) - 1 | ||
ld (hl),0x00 | ||
ldir | ||
ld hl,(__aquarius_video_base) | ||
ld bc,$2000 | ||
add hl,bc | ||
ld de,hl | ||
inc de | ||
ld bc,+(40 * 25) - 1 | ||
ld a,(__aquarius_attr) | ||
ld (hl),a | ||
ldir | ||
call __aquarius_video_pageout | ||
ret | ||
|
||
|
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,24 @@ | ||
|
||
SECTION code_clib | ||
|
||
PUBLIC cls_TEXT | ||
|
||
INCLUDE "target/aquarius/def/aquarius.def" | ||
|
||
EXTERN CONSOLE_COLUMNS | ||
EXTERN CONSOLE_ROWS | ||
EXTERN __aquarius_attr | ||
|
||
cls_TEXT: | ||
ld hl, DISPLAY | ||
ld de, DISPLAY +1 | ||
ld bc, +(CONSOLE_COLUMNS * CONSOLE_ROWS) - 1 | ||
ld (hl),32 | ||
ldir | ||
ld hl, COLOUR_MAP | ||
ld de, COLOUR_MAP+1 | ||
ld bc, +(CONSOLE_COLUMNS * CONSOLE_ROWS) - 1 | ||
ld a,(__aquarius_attr) | ||
ld (hl),a | ||
ldir | ||
ret |
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
Oops, something went wrong.