File tree Expand file tree Collapse file tree 10 files changed +43
-30
lines changed Expand file tree Collapse file tree 10 files changed +43
-30
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ add_subdirectory(common)
3939add_subdirectory (atari8)
4040add_subdirectory (c64)
4141add_subdirectory (sim)
42+ add_subdirectory (nes)
4243add_subdirectory (nes-nrom)
4344add_subdirectory (nes-nrom-128)
4445add_subdirectory (nes-nrom-256)
Original file line number Diff line number Diff line change 1- platform(nes-nrom PARENT common )
1+ platform(nes-nrom PARENT nes )
22
33if (NOT CMAKE_CROSSCOMPILING )
44 return ()
55endif ()
66
7- install (FILES ppu.h TYPE INCLUDE )
87install (FILES
9- ppu.h
108 nes-nrom.ld
11- ines-header.ld
129 ines-flags .ld
1310TYPE LIB)
1411
15- add_platform_object_file(nes-nrom-crt0-o crt0.o
16- crt0.c
17- ines.s
18- )
19- merge_libraries(nes-nrom-crt0-o common-crt0-o)
20-
21- add_platform_library(nes-nrom-crt0)
22- merge_libraries(nes-nrom-crt0
23- common-crt0
24- common-copy-data
25- common-init-stack
26- common-zero-bss
27- common-exit-loop
28- )
29-
30- add_platform_library(nes-nrom-c
31- ppu.c
32- ppu.s
33- )
34- merge_libraries(nes-nrom-c common-c)
35- target_include_directories (nes-nrom-c SYSTEM BEFORE PUBLIC .)
12+ add_platform_object_file(nes-nrom-crt0-o crt0.o ines.s)
13+ merge_libraries(nes-nrom-crt0-o nes-crt0-o)
Original file line number Diff line number Diff line change @@ -33,8 +33,4 @@ SECTIONS {
3333 .vector 0xfffa : { SHORT (nmi) SHORT (_start) SHORT (irq) } >prg_rom
3434}
3535
36- /* Provide imaginary (zero page) registers. */
37- PROVIDE (__rc0 = 0x0000 );
38- INCLUDE imag-regs.ld
39- ASSERT (__rc0 == 0x0000 , " Inconsistent zero page map." )
40- ASSERT(__rc31 == 0x001f , " Inconsistent zero page map." )
36+ INCLUDE nes-imag-regs.ld
Original file line number Diff line number Diff line change 1+ platform(nes PARENT common)
2+
3+ if (NOT CMAKE_CROSSCOMPILING )
4+ return ()
5+ endif ()
6+
7+ install (FILES ppu.h TYPE INCLUDE )
8+ install (FILES
9+ ppu.h
10+ ines-header.ld
11+ nes-imag-regs.ld
12+ TYPE LIB)
13+
14+ add_platform_object_file(nes-crt0-o crt0.o
15+ crt0.c
16+ )
17+ merge_libraries(nes-crt0-o common-crt0-o)
18+
19+ add_platform_library(nes-crt0)
20+ merge_libraries(nes-crt0
21+ common-crt0
22+ common-copy-data
23+ common-init-stack
24+ common-zero-bss
25+ common-exit-loop
26+ )
27+
28+ add_platform_library(nes-c
29+ ppu.c
30+ ppu.s
31+ )
32+ merge_libraries(nes-c common-c)
33+ target_include_directories (nes-c SYSTEM BEFORE PUBLIC .)
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1+ /* Provide imaginary (zero page) registers. */
2+ PROVIDE (__rc0 = 0x0000 );
3+ INCLUDE imag-regs.ld
4+ ASSERT (__rc0 == 0x0000 , " Inconsistent zero page map." )
5+ ASSERT(__rc31 == 0x001f , " Inconsistent zero page map." )
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments