Skip to content

Commit

Permalink
Fix -wuninit warning and -stds option parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
indigodarkwolf committed Jan 12, 2024
1 parent b732ba3 commit d5b7346
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ static uint8_t real_ram_read(uint16_t address)
const int real_address = (ramBank << 13) + address;

if ((RAM_written[real_address >> 6] & ((uint64_t)1 << (real_address & 0x3f))) == 0 && Memory_params.enable_uninitialized_access_warning) {
printf("Warning: %02X:%04X accessed uninitialized RAM address %02X:%04X\n", state6502.pc < 0xa000 ? 0 : ramBank, state6502.pc, address < 0xa000 ? 0 : ramBank, address);
printf("Warning: %02X:%04X accessed uninitialized RAM address %02X:%04X\n", bank6502(debug_state6502.pc), debug_state6502.pc, address < 0xa000 ? 0 : ramBank, address);
}

return RAM[real_address];
Expand Down
3 changes: 0 additions & 3 deletions src/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -710,9 +710,6 @@ static void parse_cmdline(mINI::INIMap<std::string> &ini, int argc, char **argv)
} else if (!strcmp(argv[0], "-stds")) {
argc--;
argv++;
if (!argc || argv[0][0] != '-') {
usage();
}

ini["stds"] = "true";

Expand Down

0 comments on commit d5b7346

Please sign in to comment.