-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Krusty/Benediction
committed
Aug 8, 2024
1 parent
8a2cd1f
commit 401d3fe
Showing
8 changed files
with
135 additions
and
7 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,61 @@ | ||
use crate::{delegated::{ArchiveFormat, DelegateApplicationDescription}, task::MARTINE_CMDS}; | ||
|
||
pub enum MartineVersion { | ||
V0_39 | ||
} | ||
|
||
impl Default for MartineVersion { | ||
fn default() -> Self { | ||
MartineVersion::V0_39 | ||
} | ||
} | ||
|
||
impl MartineVersion { | ||
pub fn get_command(&self) -> &str { | ||
MARTINE_CMDS[0] | ||
} | ||
} | ||
|
||
cfg_match! { | ||
cfg(target_os = "linux") => | ||
{ | ||
impl MartineVersion { | ||
pub fn configuration(&self) -> DelegateApplicationDescription { | ||
match self { | ||
MartineVersion::V0_39 => | ||
DelegateApplicationDescription { | ||
download_url: "https://github.com/jeromelesaux/martine/releases/download/v0.39/martine-0.39-linux-amd64.zip", // we assume a modern CPU | ||
folder : "martine_0_39", | ||
archive_format: ArchiveFormat::Zip, | ||
exec_fname: "martine.linux", | ||
compile: None | ||
} | ||
} | ||
} | ||
} | ||
} | ||
cfg(target_os = "windows") => | ||
{ | ||
impl MartineVersion { | ||
pub fn configuration(&self) -> DelegateApplicationDescription { | ||
match self { | ||
MartineVersion::V0_39 => | ||
DelegateApplicationDescription { | ||
download_url: "https://github.com/jeromelesaux/martine/releases/download/v0.39/martine-0.39-windows-amd64.zip", | ||
folder : "martine_0_39", | ||
archive_format: ArchiveFormat::Zip, | ||
exec_fname: "martine.exe", | ||
compile: None | ||
} | ||
} | ||
} | ||
} | ||
|
||
} | ||
cfg(target_os = "macos") => | ||
{ | ||
|
||
} | ||
_ => { | ||
} | ||
} |
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,2 @@ | ||
martine.scr | ||
show.sna |
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,23 @@ | ||
# This project only use delegated commands. | ||
# No one comes from benediction | ||
|
||
- tgt: ace | ||
dep: show.sna | ||
cmd: ace show.sna | ||
|
||
- tgt: show.sna | ||
dep: martine.scr/MARTIN.SCR martine.scr/MARTIN.PAL show.asm | ||
cmd: rasm show.asm -oi show.sna -map | ||
|
||
- tgt: martine.scr/MARTIN.SCR martine.scr/MARTIN.PAL | ||
dep: martine-logo.png | ||
cmd: martine -in martine-logo.png -mode 1 -noheader -out martine.scr | ||
|
||
- tgt: clean | ||
pnony: true | ||
cmd: -rm martine.scr # ATM it is buggy as it is a folderand not handled | ||
|
||
- tgt: distclean | ||
dep: clean | ||
phony: true | ||
cmd: -rm show.sna |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,27 @@ | ||
BUILDSNA ; Mandatory for rasm | ||
BANKSET 0 ; Mandatory for rasm | ||
|
||
org 0xc000 | ||
incbin "martine.scr/MARTIN.SCR" | ||
|
||
org 0x4000 | ||
run $ | ||
|
||
di | ||
ld bc, 0x7f00 | ||
ld hl, PAL | ||
|
||
repeat 4 | ||
ld a, (hl) | ||
out (c), c : out (c), a | ||
inc a | ||
inc hl | ||
rend | ||
|
||
jp $ | ||
|
||
PAL | ||
incbin "martine.scr/MARTIN.PAL", 3, 1 | ||
incbin "martine.scr/MARTIN.PAL", 3+12, 1 | ||
incbin "martine.scr/MARTIN.PAL", 3+12+12, 1 | ||
incbin "martine.scr/MARTIN.PAL", 3+12+12+12, 1 |