64Fermer66
BEYLe 30/03/2016 à 11:40
blastar (./64) :
BEY, I'm curious, how much is emulated and how much is recreated? Do you patched some z80-code?

Hi Blastar,
in NEOPHOENIX (or NGCDSGA concept) it's impossible rendering gfx "on the fly" like in MAME because 12Mhz isn't enough, so the tricks are:

RECREATED STUFF
1.Estract GFX and palette from game.rom to C-array
2.Load tile from C-array to NG RAM
3.Convert sample game sound WAV to APDCM-A and fit files into M1, V1 NG music/sound file
4.Clear Screen routine (not in Phoenix.rom) for background GFX scroll (eagles, starfield, boss ship)

EMULATED STUFF
1.All Phoenix rom game but no starfield scroll (Phoenix arcade PCB use hardware chip scroll and actually I do not know how emulate it because double buffering into 12Mhz CPU can't run like MAME+PC)
2.GFX aren't emulated on the fly but tile/palette from NG RAM to video
3.Sound aren't emulated on the fly but sample play

Z80 PATCHED CODE - PHOENIX.ROM GAME ONLY
1.Bypass main Vblank routine
2. Bypass starfield scroll routine (for now, I'm working on it)
3.W.I.P.: Bypass some sound wave generator routine because samples (Phoenix PCB use analog audio circuitry)