Changed = to ==

Changed = to ==
I think this was a simple mistake and since there was no way to test it until now, it didn't show up.
This commit is contained in:
Benjamin David Lunt 2024-02-19 00:18:16 -07:00 committed by GitHub
parent 4455da0e1b
commit 2c4fcc7981
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -957,13 +957,13 @@ void BX_MEM_C::flash_write(Bit32u addr, Bit8u data)
BX_MEM_THIS flash_status &= ~0xc0;
BX_MEM_THIS flash_wsm_state = FLASH_ERASE;
if ((BX_MEM_THIS flash_type == 1) &&
((flash_addr = 0x1c000) || (flash_addr = 0x1d000))) {
((flash_addr == 0x1c000) || (flash_addr == 0x1d000))) {
for (i = 0; i < 0x1000; i++) {
BX_MEM_THIS rom[addr + i] = 0xff;
}
BX_MEM_THIS flash_modified = true;
} else if ((BX_MEM_THIS flash_type == 2) &&
((flash_addr = 0x38000) || (flash_addr = 0x3a000))) {
((flash_addr == 0x38000) || (flash_addr == 0x3a000))) {
for (i = 0; i < 0x2000; i++) {
BX_MEM_THIS rom[addr + i] = 0xff;
}