Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Reverse-engineering] [th04/th05] graph_putsa_fx tables
- Loading branch information
1 parent
6e09a2c
commit 75f05c8
Showing
7 changed files
with
175 additions
and
498 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,32 @@ | ||
glyph_weight_1 label near | ||
mov dx, ax | ||
add dx, dx | ||
or ax, dx | ||
glyph_weight_0 label near | ||
retn | ||
|
||
glyph_weight_3 label near | ||
mov dx, ax | ||
shl dx, 1 | ||
or ax, dx | ||
glyph_weight_2 label near | ||
mov dx, ax | ||
mov bp, ax | ||
add bp, bp | ||
or ax, bp | ||
xor dx, ax | ||
add dx, dx | ||
not dx | ||
and ax, dx | ||
retn | ||
|
||
glyph_double_and_mask proc near | ||
call glyph_weight_2 | ||
mov bl, ch | ||
and bx, 3 | ||
add bx, bx | ||
|
||
grppsafx_glyph_mask equ $+3 | ||
and ax, fs:[bx+1234h] | ||
retn | ||
glyph_double_and_mask endp |
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,4 @@ | ||
// TH04 adds 4 dissolve masks with patterns of increasing strength, and splits | ||
// the [fx] parameter into two separate global variables. | ||
extern int graph_putsa_fx_func; | ||
extern int graph_putsa_fx_spacing; |
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,28 @@ | ||
GLYPH_WEIGHT_FUNC_TABLE_1 label word | ||
dw glyph_weight_0 - (grppsafx_glyph_func_1 + 2) | ||
dw glyph_weight_1 - (grppsafx_glyph_func_1 + 2) | ||
dw glyph_weight_2 - (grppsafx_glyph_func_1 + 2) | ||
dw glyph_weight_3 - (grppsafx_glyph_func_1 + 2) | ||
dw glyph_double_and_mask - (grppsafx_glyph_func_1 + 2) | ||
|
||
GLYPH_WEIGHT_FUNC_TABLE_2 label word | ||
dw glyph_weight_0 - (grppsafx_glyph_func_2 + 2) | ||
dw glyph_weight_1 - (grppsafx_glyph_func_2 + 2) | ||
dw glyph_weight_2 - (grppsafx_glyph_func_2 + 2) | ||
dw glyph_weight_3 - (grppsafx_glyph_func_2 + 2) | ||
dw glyph_double_and_mask - (grppsafx_glyph_func_2 + 2) | ||
|
||
GLYPH_MASK_TABLE label word | ||
dw _grppsafx_mask_1 | ||
dw _grppsafx_mask_2 | ||
dw _grppsafx_mask_3 | ||
dw _grppsafx_mask_4 | ||
|
||
_grppsafx_mask_1 dw 8888h, 0h, 2222h, 0h | ||
_grppsafx_mask_2 dw 8888h, 4444h, 2222h, 1111h | ||
_grppsafx_mask_3 dw 0AAAAh, 4444h, 0AAAAh, 1111h | ||
_grppsafx_mask_4 dw 0AAAAh, 5555h, 0AAAAh, 5555h | ||
|
||
public _graph_putsa_fx_func, _graph_putsa_fx_spacing | ||
_graph_putsa_fx_func dw 2 | ||
_graph_putsa_fx_spacing dw 16 |
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.