Skip to content

Commit

Permalink
Add NES UNROM mapper support. (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
asiekierka authored Sep 9, 2023
1 parent da4b49d commit 5cd46df
Show file tree
Hide file tree
Showing 18 changed files with 1,631 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ executables and libraries for that target.
| NES (MMC1 mapper) | `mos-nes-mmc1-clang` |
| NES (MMC3 mapper) | `mos-nes-mmc3-clang` |
| NES (NROM mapper) | `mos-nes-nrom-clang` |
| NES (UNROM mapper) | `mos-nes-unrom-clang` |
| Ohio Scientific Challenger 1P | `mos-osi-c1p-clang` |
| PC Engine | `mos-pce-clang` |
| PC Engine CD | `mos-pce-cd-clang` |
Expand Down
1 change: 1 addition & 0 deletions mos-platform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ add_subdirectory(nes-cnrom)
add_subdirectory(nes-nrom)
add_subdirectory(nes-mmc1)
add_subdirectory(nes-mmc3)
add_subdirectory(nes-unrom)
add_subdirectory(osi-c1p)
add_subdirectory(dodo)
add_subdirectory(pet)
Expand Down
18 changes: 18 additions & 0 deletions mos-platform/nes-unrom/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
platform(nes-unrom COMPLETE PARENT nes)

if(NOT CMAKE_CROSSCOMPILING)
return()
endif()

install(FILES
_prg-rom-banked.ld
common.ld
prg-rom.ld
TYPE LIB)
install(FILES bank.h TYPE INCLUDE)

add_platform_object_file(nes-unrom-crt0-o crt0.o ines.s)
add_platform_object_file(nes-unrom-reset-o reset.o reset.s)

add_platform_library(nes-unrom-c bank.c bank.s)
target_link_libraries(nes-unrom-c PRIVATE common-asminc)
Loading

0 comments on commit 5cd46df

Please sign in to comment.