Skip to content

Commit

Permalink
Release 0.4.0
Browse files Browse the repository at this point in the history
-------------
Added FAT32 support.
Added Vicky II display format.
  • Loading branch information
Daniel Tremblay committed Sep 13, 2022
1 parent 574bfc5 commit 09358d6
Show file tree
Hide file tree
Showing 19 changed files with 3,704 additions and 3,810 deletions.
46 changes: 39 additions & 7 deletions GABE_Control_Registers_def.asm
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,26 @@
GABE_MSTR_CTRL = $AFE880
GABE_CTRL_PWR_LED = $01 ; Controls the LED in the Front of the case (Next to the reset button)
GABE_CTRL_SDC_LED = $02 ; Controls the LED in the Front of the Case (Next to SDCard)
GABE_CTRL_STS_LED0 = $04 ; Control Status LED0 (General Use) - C256 Foenix U Only
GABE_CTRL_STS_LED1 = $08 ; Control Status LED0 (General Use) - C256 Foenix U Only
GABE_CTRL_BUZZER = $10 ; Controls the Buzzer
GABE_CTRL_WRM_RST = $80 ; Warm Reset (needs to Setup other registers)

GABE_NOTUSED = $AFE881 ; Reserved for future use
GABE_LED_FLASH_CTRL = $AFE881 ; Flashing LED Control
GABE_LED0_FLASH_CTRL = $01 ; 0- Automatic Flash 1 - Bypass Flash Timer (Use GABE_CTRL_STS_LED0 to manually control)
GABE_LED1_FLASH_CTRL = $02 ; 0- Automatic Flash 1 - Bypass Flash Timer (Use GABE_CTRL_STS_LED1 to manually control)

GABE_LD0_FLASH_FRQ0 = $10 ; 1 - Bypass Flash Timer (Use GABE_CTRL_STS_LED0 to manually control)
GABE_LD0_FLASH_FRQ1 = $20 ; 1 - Bypass Flash Timer (Use GABE_CTRL_STS_LED0 to manually control)
; 00 - 1Hz
; 01 - 2hz
; 10 - 4hz
; 11 - 5hz
GABE_LD1_FLASH_FRQ0 = $40 ; 1 - Bypass Flash Timer (Use GABE_CTRL_STS_LED0 to manually control)
GABE_LD1_FLASH_FRQ1 = $80 ; 1 - Bypass Flash Timer (Use GABE_CTRL_STS_LED0 to manually control)



GABE_RST_AUTH0 = $AFE882 ; Must Contain the BYTE $AD for Reset to Activate
GABE_RST_AUTH1 = $AFE883 ; Must Contain the BYTE $DE for Reset to Activate

Expand All @@ -31,14 +47,30 @@ GABE_RNG_CTRL_DV = $02 ; After Setting the Seed Value, Toggle that Bit fo

GABE_SYS_STAT = $AFE887 ;
GABE_SYS_STAT_MID0 = $01 ; Machine ID -- LSB
GABE_SYS_STAT_MID1 = $02 ; Machine ID -- MSB
GABE_SYS_STAT_EXP = $08 ; if Zero, there is an Expansion Card Preset
GABE_SYS_STAT_CPUA = $40 ; Indicates the (8bit/16bit) Size of the Accumulator
GABE_SYS_STAT_CPUX = $80 ; Indicates the (8bit/16bit) Size of the Accumulator
GABE_SYS_STAT_MID1 = $02 ; Machine ID --
GABE_SYS_STAT_MID2 = $04 ; Machine ID -- MSB
;Bit 2, Bit 1, Bit 0
;$000: FMX
;$100: FMX (Future C5A)
;$001: U 2Meg
;$101: U+ 4Meg U+
;$010: TBD (Reserved)
;$110: TBD (Reserved)
;$011: A2560 Dev
;$111: A2560 Keyboard
GABE_SYS_STAT_EXP = $10 ; if Zero, there is an Expansion Card Preset

GABE_SYS_STAT_CPUA = $40 ; Indicates the (8bit/16bit) Size of the Accumulator - Not Implemented
GABE_SYS_STAT_CPUX = $80 ; Indicates the (8bit/16bit) Size of the Accumulator - Not Implemented

; Machine ID
GABE_SUBVERSION_LO = $AFE88A
GABE_SUBVERSION_HI = $AFE88B
GABE_VERSION_LO = $AFE88C
GABE_VERSION_HI = $AFE88D
GABE_MODEL_LO = $AFE88E
GABE_MODEL_HI = $AFE88F
; OLD Machine ID Definition - Deprecated
; $00 = FMX - Development Platform
; $01 = C256 Foenix - Dev Platform
; $10 = C256 Foenix - User Version (65C816)
; $11 = TBD
; $11 = TBD
2 changes: 1 addition & 1 deletion OPL2_Library.asm
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ OPL2_TONE_TESTING_L2

RTL

OPL2_INIT
OPL3_INIT
.as
setal
; Just Making sure all the necessary variables are cleared before doing anything
Expand Down
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,26 @@ Go to https://sourceforge.net/projects/tass64/ to get it.
I'm currently using version *64tass Turbo Assembler Macro V1.54.1900*

The model I'm using is RAD Tracker https://www.3eality.com/productions/reality-adlib-tracker.
The C256 Tracker is only able to play version 1.1 RAD files.
The C256 Tracker is only able to play version _1.1_ RAD files.

Special Keys:
<enter>: start playing the song from the beggining
<ctrl><enter>: start playing from current position in pattern
<=>: next pattern
<->: previous pattern
<;>: slow down (this uses the BPM algorithm, not the Speed parameter)
<'>: speed up (this uses the BPM algorithm, not the Speed parameter)
<ctrl><l>: read SD Card for files. In the menu, use up-arrow/down-arrow to navigate. <enter> to select a file.
<[>: Previous Instrument
<]>: Next Instrument
<qwertyuio and 23-567-9>: play notes high
<zxcvbnm and >: play nodes low

Todo List:
* Implementation of RAD version 2.0.
* Creating and Editing files.
* Some effects are still not implemented.
* Writing to SD Card.
* Reading from FAT12 SD Cards.

You will need the C256 Foenix IDE to code and debug: https://github.com/Trinity-11/FoenixIDE.

Expand Down
2 changes: 1 addition & 1 deletion Rad_Player.asm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ TuneInfo .dstruct SongData
; We are assuming that the RAD File is already Loaded Somewhere
; ************************************************************************************************
RAD_INIT_PLAYER
JSL OPL2_INIT ; Init OPL2
JSL OPL3_INIT ; Init OPL3
JSR RAD_ALL_NOTES_OFF
; zero the pattern memory
Expand Down
Loading

0 comments on commit 09358d6

Please sign in to comment.