2019-11-08 20:03:03 +00:00
|
|
|
; ReC98
|
|
|
|
; -----
|
|
|
|
; PC-98 hardware constants not covered by master.lib
|
|
|
|
|
2019-11-26 11:51:08 +00:00
|
|
|
; Text
|
|
|
|
; ====
|
2019-12-28 20:20:48 +00:00
|
|
|
GAIJI_W = 16
|
|
|
|
GAIJI_TRAM_W = (GAIJI_W / 8)
|
2020-01-13 21:52:19 +00:00
|
|
|
GLYPH_HALF_W = 8
|
|
|
|
GLYPH_FULL_W = 16
|
|
|
|
GLYPH_H = 16
|
2019-11-26 11:51:08 +00:00
|
|
|
; ====
|
|
|
|
|
2019-11-08 20:03:03 +00:00
|
|
|
; Graphics
|
|
|
|
; ========
|
2021-02-27 14:49:28 +00:00
|
|
|
BYTE_DOTS = 8
|
2019-11-08 20:03:03 +00:00
|
|
|
RES_X = 640
|
|
|
|
RES_Y = 400
|
2021-02-27 14:49:28 +00:00
|
|
|
ROW_SIZE = (RES_X / BYTE_DOTS)
|
2020-02-05 21:45:59 +00:00
|
|
|
PLANE_SIZE = (ROW_SIZE * RES_Y)
|
[Maintenance] Templatize RGB and palette types for 4- and 8-bit components
Right, PC-98 hardware only supports 4 bits per RGB component, for a
total of 4,096 possible colors. The 8-bit RGB color values we've been
seeing throughout the later games are a master.lib extension, to allow
for more toning precision. Which TH01, with all its NIH syndrome,
doesn't use.
And yup, that means templates in the most basic header files… Since
that would have meant renaming *everything* to compile as C++, I simply
made these types exclusive to C++ code, thcrap style.
Part of P0066, funded by Keyblade Wiedling Neko and Splashman.
2020-01-05 11:05:42 +00:00
|
|
|
COLOR_COUNT = 16
|
2021-02-08 14:37:30 +00:00
|
|
|
|
2021-02-24 13:24:58 +00:00
|
|
|
PLANE_COUNT = 4
|
|
|
|
|
2021-02-08 14:37:30 +00:00
|
|
|
; RGB color triple, used for the Palettes structure
|
|
|
|
rgb_t struc
|
|
|
|
r db ?
|
|
|
|
g db ?
|
|
|
|
b db ?
|
|
|
|
rgb_t ends
|
|
|
|
|
|
|
|
palette_t struc
|
|
|
|
colors rgb_t COLOR_COUNT dup(<?>)
|
|
|
|
palette_t ends
|
2019-11-08 20:03:03 +00:00
|
|
|
; ========
|
2020-09-06 22:21:38 +00:00
|
|
|
|
|
|
|
SEG_PLANE_B = 0A800h
|
|
|
|
SEG_PLANE_R = 0B000h
|
|
|
|
SEG_PLANE_G = 0B800h
|
|
|
|
SEG_PLANE_E = 0E000h
|
|
|
|
SEG_PLANE_DIST_BRG = 800h
|
|
|
|
SEG_PLANE_DIST_E = 2800h
|