Skip to content

Commit

Permalink
Added support to mapper 562.
Browse files Browse the repository at this point in the history
  • Loading branch information
punesemu committed Mar 9, 2024
1 parent e190af6 commit dc7c5a7
Show file tree
Hide file tree
Showing 8 changed files with 845 additions and 276 deletions.
10 changes: 10 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
Changelog:
0.112
- Added support to mapper : 562.
- Disabled portable mode for the AppImage (#378).
- Fixed mapper : 12, 17, 561.
- [NSF] Fixed display of timers when resetting the emulator (#380).
- [NSF] Fixed Fixed RAM and WRAM initialization when changing songs (#380 and #384).
- [NSF] Fixed wram destination pointer initialization (#383).
- [NSF] Fixed region selection (#380).
- [NSF] Fixed RAM initialization (#380).
- [NSF Player] Fixed a bug that prevented the display of some song titles (#377).
- [NSF Player] Some NSFe have text encoded in ISO-8859-1 instead of UTF8, improved string encoding recognition (#377).
- [NSF Player] Fixed wrong playlist count (#377).

0.111
- Rewritten mappers : All.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ To see a list of available command-line options, start puNES with the `-h` argum
| 528 | 529 | 530 | | 532 | | 534 | | 536 | 537 | 538 |
| 539 | 540 | 541 | | 543 | | | | 547 | | |
| 550 | 551 | 552 | | 554 | 555 | 556 | 557 | 558 | 559 | 560 |
| 561 | | | | | | | | | | |
| 561 | 562 | | | | | | | | | |


:electric_plug: Unif
Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ set(core_srcs
core/mappers/mapper_559.c
core/mappers/mapper_560.c
core/mappers/mapper_561.c
core/mappers/mapper_562.c
core/mappers/mapper_FDS.c
core/mappers/mapper_GameGenie.c
core/mappers/mapper_NSF.c
Expand Down
5 changes: 4 additions & 1 deletion src/core/mappers.c
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,9 @@ BYTE map_init(void) {
case 561:
map_init_561();
break;
case 562:
map_init_562();
break;
default:
gui_overlay_info_append_msg_precompiled(11, NULL);
EXTCL_CPU_WR_MEM(000);
Expand Down Expand Up @@ -1382,4 +1385,4 @@ void map_internal_struct_init(BYTE *strct, size_t size) {
}
void map_internal_struct_quit(void) {
memset(&mapper.structs, 0x00, sizeof(_mapper_int_structs));
}
}
1 change: 1 addition & 0 deletions src/core/mappers.h
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@
#include "mappers/mapper_559.h"
#include "mappers/mapper_560.h"
#include "mappers/mapper_561.h"
#include "mappers/mapper_562.h"
#include "mappers/mapper_FDS.h"
#include "mappers/mapper_GameGenie.h"
#include "mappers/mapper_NSF.h"
Expand Down
530 changes: 256 additions & 274 deletions src/core/mappers/mapper_006.c

Large diffs are not rendered by default.

538 changes: 538 additions & 0 deletions src/core/mappers/mapper_562.c

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions src/core/mappers/mapper_562.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Copyright (C) 2010-2024 Fabio Cavallo (aka FHorse)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#ifndef MAPPER_562_H_
#define MAPPER_562_H_

#include "common.h"

void map_init_562(void);
void extcl_after_mapper_init_562(void);
void extcl_cpu_init_pc_562(BYTE nidx);
void extcl_cpu_wr_mem_562(BYTE nidx, WORD address, BYTE value);
BYTE extcl_cpu_rd_mem_562(BYTE index, WORD address, BYTE openbus);
BYTE extcl_save_mapper_562(BYTE mode, BYTE slot, FILE *fp);
void extcl_wr_chr_562(BYTE nidx, WORD address, BYTE value);
BYTE extcl_rd_chr_562(BYTE nidx, WORD address);
void extcl_cpu_every_cycle_562(BYTE nidx);

#endif /* MAPPER_562_H_ */

0 comments on commit dc7c5a7

Please sign in to comment.