Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Reverse-engineering] [th01] Global .GRP and .PTN variables
Since we not only have the .PTN sub-image count array in the middle of all those .GRP flags, but the .PTN loading code also reusing the palette set flag… Part of P0082, funded by Ember2528.
- Loading branch information
Showing
6 changed files
with
100 additions
and
93 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
extern "C" { | ||
|
||
extern int flag_palette_show; // = true | ||
extern int flag_grp_put; // = true | ||
extern unsigned char flag_grp_colorkey; // = false | ||
|
||
} |
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,14 @@ | ||
PTN_COUNT = 8 | ||
|
||
public _flag_palette_show, _flag_grp_put, _ptn_image_count, _flag_grp_colorkey | ||
_flag_palette_show dw 1 | ||
_flag_grp_put dw 1 | ||
db 3 dup(0) | ||
_ptn_image_count db PTN_COUNT dup(0) | ||
|
||
if BINARY eq 'E' | ||
public _grp_palette_tone | ||
_grp_palette_tone dw 100 | ||
endif | ||
|
||
_flag_grp_colorkey db 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,3 @@ | ||
#define PTN_COUNT 8 | ||
|
||
int8_t ptn_image_count[PTN_COUNT]; |
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.