gint-with-thread/src/render-cg
Lephe 7d63a1b536
r61524 render-cg: support Prizm and fx-CG Manager
This change adds a new HWCALC model, HWCALC_FXCG_MANAGER, which
identifies Casio's official fx-CG Manager software. Both the Prizm and,
to my surprise, the fx-CG Manager use the old RAM address of 88000000
(P1) and a8000000 (P2) instead of the new fx-CG 50 address of 8c000000
(P1) and ac000000 (P2).

The VRAM is hence adjusted at startup to move hardcoded pointers into
the proper space. Added to the kernel moving the VBR space dynamically
on the Prizm, this allows gint to be fully compatible with these
platforms.

The fx-CG Manager is detected by its product ID made of 0xff.

Also adds a proper interface to the R61524 driver, even though it's not
any more complete than previously, and fixes an oversight where the
HWURAM entry of the kernel data array was no longer computed since the
TLB management change.

As of now, the fx-CG Manager still has a bug regarding return-to-menu
since returning from the main menu doesn't work very well and often
loops. This has been seen occasionally on some Graph 90+E so it's
unlikely to be a platform-specific problem.
2020-07-02 15:48:19 +02:00
..
bopti-asm.h bopti: deprecate image_t, renamed to bopti_image_t 2020-06-01 12:11:59 +02:00
bopti-asm.s bopti-cg: add p8, p4, and fix alignment issues on r5g6b5 2019-11-15 13:31:44 +01:00
bopti.c bopti: deprecate image_t, renamed to bopti_image_t 2020-06-01 12:11:59 +02:00
dclear.c render: remove the GINT_NEED_VRAM macro 2019-10-27 08:14:42 +01:00
dhline.c render: add one-parameter dvline() and dhline() 2019-09-07 11:26:11 +02:00
dimage.c bopti: deprecate image_t, renamed to bopti_image_t 2020-06-01 12:11:59 +02:00
dline.c render-cg: fix potential VRAM overflow in gint_dhline() 2020-06-13 20:41:13 +02:00
dpixel.c render: remove the GINT_NEED_VRAM macro 2019-10-27 08:14:42 +01:00
drect.c render: remove the GINT_NEED_VRAM macro 2019-10-27 08:14:42 +01:00
dupdate.c r61524 render-cg: support Prizm and fx-CG Manager 2020-07-02 15:48:19 +02:00
dvline.c render: add one-parameter dvline() and dhline() 2019-09-07 11:26:11 +02:00
dvram.c r61524 render-cg: support Prizm and fx-CG Manager 2020-07-02 15:48:19 +02:00
topti-asm.h render: refactor to share functions, and basic text on fxcg50 2019-06-15 01:05:31 -04:00
topti-asm.s core: answer TLB misses and remove startup mapping (UNSTABLE) 2020-06-14 18:22:20 +02:00
topti.c render: add alignment options to dtext_opt() and dprint_opt() 2020-06-18 18:31:13 +02:00