mirror of https://github.com/nmlgc/ReC98.git
e55a48b700
Which store colors as GRB, as suggested by the structure's ID string.
Even master.lib's own functions add an additional XCHG AH, AL
instruction to get colors into and out of this format. MASTER.MAN
suggests that it's some sort of standard on PC-98. It does match the
order of ths hardware's palette register ports, after all.
(0AAh = green, 0ACh = red, 0AEh = blue)
Now we also know why __seg* wasn't used more commonly, as lamented in
c8e8e98. Turbo C++ simply doesn't support a lot of arithmetic on
segment pointers.
And then that undecompilable far call to a function within the same
segment, but inside a different translation unit…
Also, thanks again to Egor for the SCOPY@ hack that debuted in
|
||
---|---|---|
.. | ||
color.asm | ||
egc.inc | ||
egccopyr.c | ||
frmdely.c | ||
graph_page.asm | ||
palette.hpp | ||
palette[data].asm | ||
palette_black.asm | ||
palette_set_show.asm | ||
palette_white.asm | ||
respal.cpp | ||
respal[data].asm | ||
vplanset.c | ||
vram_planes[bss].asm | ||
vram_planes_set.asm | ||
vsync.c | ||
vsync[bss].asm | ||
vsync[data].asm | ||
vsyncclr.c |