mirror of
https://github.com/handsomezhuzhu/2025-yatcpu.git
synced 2026-02-20 20:10:14 +00:00
add csrc
This commit is contained in:
@@ -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.
BIN
lab4/src/main/resources/paging.asmbin
Normal file
BIN
lab4/src/main/resources/paging.asmbin
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
lab4/src/main/resources/tetris_mmu.asmbin
Normal file
BIN
lab4/src/main/resources/tetris_mmu.asmbin
Normal file
Binary file not shown.
Reference in New Issue
Block a user