📄 tc100scn.c
字号:
/******************************************************************************//* *//* tc0100scn: TAITO SCREEN LAYER CHIP (BG0/BG1/FG0) *//* *//******************************************************************************/#include "gameinc.h"#include "tc100scn.h"extern int layer_id_data[MAX_CHIP][3];/*SCREEN RAM--------------------+----------------------------- Range | Use----------+-----------------------------0000-3FFF | BG0 Layer [512x512x8: 4 bytes]4000-5FFF | FG0 Layer [512x512x8: 2 bytes]6000-7FFF | FG0 GFX8000-BFFF | BG1 Layer [512x512x8: 4 bytes]C000-C7FF | Line-Line Scroll? (AquaJack)E000-E0FF | ? (AquaJack)----------+-----------------------------SCROLL RAM---------------+--------+-------------------------Byte | Bit(s) | Use-----+76543210+------------------------- 0 |.......x| BG0 Scroll X 1 |xxxxxxxx| BG0 Scroll X 2 |.......x| BG1 Scroll X 3 |xxxxxxxx| BG1 Scroll X 4 |.......x| FG0 Scroll X 5 |xxxxxxxx| FG0 Scroll X 6 |.......x| BG0 Scroll Y 7 |xxxxxxxx| BG0 Scroll Y 8 |.......x| BG1 Scroll Y 9 |xxxxxxxx| BG1 Scroll Y A |.......x| FG0 Scroll Y B |xxxxxxxx| FG0 Scroll Y D |.......x| BG0 Disable D |......x.| BG1 Disable D |.....x..| FG0 Disable D |....x...| Swap BG0:BG1 F |.......x| Screen Flip F |..x.....| Priority for 2 chips?-----+--------+-------------------------Not implemented:- FG0 seems to be offset differently in some games.- The variable stuff is slower, unless it can use self modifying code, so need to convert to asm.- Need to add support for different screen orientations (screen flip Y-Axis, screen rotate 90 degrees).- Line-line scroll is used occasionally (Chase HQ).- FG0 gfx mask is missing (might be faster, might not make much difference).Direct Mapped Games:Bonze Adventure/Jigoku - OKCadash/Cadash Italian - OK (title screen might use line-line scroll)Mega Blast - OKCamel Try - OK (only need FG0)Growl - OK (fg0 is different offset in test mode)Ninja Kids - OKThunder Fox - OK (priorities between dual tc0100scn and sprites wrong)Operation Wolf - OK (Old/Split scroll ram)Rastan - ? (Old/Split scroll ram)Rainbow Islands - ? (Old/Split scroll ram)Mapped Games:Final Blow - OKChase HQ - OK (uses line-line scroll)Pulirula - OKAquaJack - OKDino Rex - OKNight Striker - OK (uses line-line scroll)Chase HQ 2 - ?Continental Circus - ?Mapped rotate 270
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -