MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM
Re: Score tracking system in tgm2p (Tetris The Absolute The Grand Master 2 PLUS)
10/05/11 10:39 PM


> Hey
>
> I'm trying to hack a score tracking system in tgm2p (basically just dumping the final
> score and a timestamp to a text file) for fun, and I'm using this
> sh2->program->read_byte(0x06064BBB) to read the score on "sh2drc.c" inside the
> do...while on CPU_EXECUTE.
>
> Is there a better way to this?

Assuming you only want to read that score at the end of the game, adding a MACHINE_STOP handler to the driver and doing the read there would be a much, much better idea. Or just run -debug, hit tilde when it's time to pull up the score, and save the relevant memory bytes to a file ("help memory" will tell you how to do that).







Entire thread
Subject Posted by Posted on
* Score tracking system in tgm2p (Tetris The Absolute The Grand Master 2 PLUS) patreezus 10/04/11 10:48 PM
. * Re: Score tracking system in tgm2p (Tetris The Absolute The Grand Master 2 PLUS) R. Belmont  10/05/11 10:39 PM
. * Re: Score tracking system in tgm2p (Tetris The Absolute The Grand Master 2 PLUS) patreezus  10/05/11 11:31 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 15 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2779