This commit is contained in:
TOKISAKIX\21168
2023-12-11 21:54:53 +08:00
parent 910ee11168
commit e720a0dfc2
57 changed files with 2621 additions and 2152 deletions

View File

@@ -32,29 +32,6 @@ foreach(program IN LISTS ASM_PROGRAMS)
set_target_properties(${program} PROPERTIES LINK_DEPENDS ${LINKER_SCRIPT})
endforeach()
set(PROGRAMS litenes)
# NES Emulator
include_directories(${CMAKE_SOURCE_DIR}/LiteNES/include)
add_definitions(-DYATCPU)
add_library(fce
${CMAKE_SOURCE_DIR}/LiteNES/src/fce/common.c
${CMAKE_SOURCE_DIR}/LiteNES/src/fce/cpu-addressing.c
${CMAKE_SOURCE_DIR}/LiteNES/src/fce/cpu.c
${CMAKE_SOURCE_DIR}/LiteNES/src/fce/fce.c
${CMAKE_SOURCE_DIR}/LiteNES/src/fce/memory.c
${CMAKE_SOURCE_DIR}/LiteNES/src/fce/mmc.c
${CMAKE_SOURCE_DIR}/LiteNES/src/fce/ppu.c
${CMAKE_SOURCE_DIR}/LiteNES/src/fce/psg.c
)
target_compile_options(fce PRIVATE "-O3")
add_executable(litenes
${CMAKE_SOURCE_DIR}/LiteNES/src/main.c
${CMAKE_SOURCE_DIR}/LiteNES/src/hal.c
${CMAKE_SOURCE_DIR}/LiteNES/src/rom.c
)
set_target_properties(litenes PROPERTIES LINK_DEPENDS ${LINKER_SCRIPT})
target_link_libraries(litenes prelude fce ${LINKER_FLAGS})
# Copy the .text and .data section to .asmbin files
foreach(program IN LISTS C_PROGRAMS ASM_PROGRAMS PROGRAMS)
add_custom_command(

Binary file not shown.

Binary file not shown.

Binary file not shown.