Atari Black Widow lvl 105

tcgn

Newbie
Credits
23CR
just stumbled across this, I thought it might be a bug of mine but now am pretty sure

this is a Black Widow rom bug: it crashes when setting up lvl 105.

I hunted this down in my own, custom binary translation (for the VF/Vectrex) and

thought it might be a security issue I have overlooked (..happened before with Tempest and Red Baron)

but it definitely overwrites a crucial 'game state' variable which is used as a lookup for a 6502

'switch' code table. Grabs an invalid '$6048' adr. and.. dies..

on my emulator the watchdog kicks in and resets, tried on a recent mame and there it just hangs.

Reasonably easy to repro: just set the game to demo, lives to max. and start at lvl 97..

the problematic code starts at $B4F1, X increases directly with the wave_no ($45D) and a STA $3D7,X

eventually hits the game state at $421.
 

tcgn

Newbie
Credits
23CR
Should be an easy fix - just checked and there already is a range check in ROM;
it is just off by at least one to prevent overwriting the lookup variable:

$B558 $E0 $4B CPX #$4B

and X is 3*(wave. no minus one) here if I remember correctly.

If that is all that is needed, of course, I have not tried a patch out since I am happy with the original

state, plenty of games back then had a 'kill-screen' after all.
 
Top