-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
6 changed files
with
68 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ Changelog | |
|
||
# Version 1.4.8 | ||
- Detect GBStudio 3.2.0 | ||
- Detect gbnim | ||
|
||
# Version 1.4.7 | ||
- Detect GBForth | ||
|
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,26 @@ | ||
|
||
#include <stdbool.h> | ||
#include <stdint.h> | ||
|
||
#include "common.h" | ||
|
||
#ifndef _ENTRY_NAMES_GBNIM_H | ||
#define _ENTRY_NAMES_GBNIM_H | ||
|
||
|
||
// ==== SHARED CODE WITH C STARTS HERE ==== | ||
|
||
// ==== gbnim ==== | ||
// | ||
// https://github.com/ZoomTen/pocket-clicker/blob/4b520a95e9b8b22d5b3860cac124b4ad6de2215d/src/asm/crt0/header_init_rstvectors.s#L121C1-L128C19 | ||
DEF_PATTERN_ADDR(sig_gbnim_startup_1_at, 0x0176); | ||
DEF_PATTERN_BUF(sig_gbnim_startup_1, AR_ARGS(0x22, 0x77, 0xE0, 0x0F, 0xE0, 0x26)); | ||
|
||
// https://github.com/ZoomTen/pocket-clicker/blob/4b520a95e9b8b22d5b3860cac124b4ad6de2215d/src/asm/crt0/header_init_rstvectors.s#L144C1-L158C10 | ||
DEF_PATTERN_ADDR(sig_gbnim_startup_2_at, 0x0185); | ||
DEF_PATTERN_BUF(sig_gbnim_startup_2, AR_ARGS(0x0E, 0x0B, 0xF7, 0xCD, 0x92, 0x28, 0xE0, 0x4A, 0x3E, 0x07, 0xE0, 0x4B, 0x3E, 0xE4, 0xE0, 0x47, 0xE0, 0x48, 0xE0, 0x49, 0x3C)); | ||
|
||
// ==== SHARED CODE WITH C ENDS HERE ==== | ||
|
||
|
||
#endif // _ENTRY_NAMES_GBNIM_H |
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,30 @@ | ||
// This is free and unencumbered software released into the public domain. | ||
// For more information, please refer to <https://unlicense.org> | ||
// bbbbbr 2020 | ||
|
||
#include <stdint.h> | ||
#include <stdbool.h> | ||
|
||
#include "common.h" | ||
#include "entries.h" | ||
#include "gbtoolchainid.h" | ||
|
||
#include "entry_names_gbnim.h" | ||
|
||
#include <stdio.h> | ||
|
||
// Check for GB Nim | ||
void check_gbnim(void) { | ||
|
||
tool_entry entry; | ||
|
||
// ==== SHARED CODE WITH C STARTS HERE ==== | ||
entry = FORMAT_ENTRY(TYPE_TOOLS, "gbnim", ""); | ||
if (CHECK_PATTERN_AT_ADDR(sig_gbnim_startup_1, sig_gbnim_startup_1_at)) { | ||
if (CHECK_PATTERN_AT_ADDR(sig_gbnim_startup_2, sig_gbnim_startup_2_at)) { | ||
entry_add(entry); | ||
} | ||
} | ||
|
||
// ==== SHARED CODE WITH C ENDS HERE ==== | ||
} |
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,8 @@ | ||
|
||
#ifndef _SIG_GBNIM_H | ||
#define _SIG_GBNIM_H | ||
|
||
void check_gbnim(void); | ||
|
||
#endif // _SIG_GBNIM_H | ||
|
Binary file not shown.