Skip to content

Commit

Permalink
d_pgm: clear
Browse files Browse the repository at this point in the history
  • Loading branch information
taoenwen committed Feb 11, 2025
1 parent 3bb64f9 commit 06d7bc8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/burn/drv/pgm/d_pgm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2136,12 +2136,7 @@ static INT32 oldsInit()
if (!(nIpsDrvDefine & IPS_NOT_PROTECT))
pPgmProtCallback = install_protection_asic25_asic28_olds;

// return pgmInit();
int nRet = pgmInit();
FILE* f = fopen("pgm_prg", "wb");
fwrite(PGM68KROM, 0x400000, 1, f);
fclose(f);
return nRet;
return pgmInit();
}

struct BurnDriver BurnDrvOlds = {
Expand Down

2 comments on commit 06d7bc8

@dinkc64
Copy link
Collaborator

@dinkc64 dinkc64 commented on 06d7bc8 Feb 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@taoenwen,
Hi,
Not too long ago I added some handy functions for this kinda stuff, f.ex:
BurnDump("fn.bin", PGM68KROM, 0x400000);
It also puts some handy information in the debug console.
There's also BurnDumpLoad() and BurnDumpAppend() - see burn.h for more info
Of course, this is just to make quick debugging-load/save's of data more "fun" :)

best regards,

  • dink

@taoenwen
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@taoenwen, Hi, Not too long ago I added some handy functions for this kinda stuff, f.ex: BurnDump("fn.bin", PGM68KROM, 0x400000); It also puts some handy information in the debug console. There's also BurnDumpLoad() and BurnDumpAppend() - see burn.h for more info Of course, this is just to make quick debugging-load/save's of data more "fun" :)

best regards,

  • dink

Oh, that's much easier, thank you! Sir!

Please sign in to comment.