Skip to content

Commit 432ecbd

Browse files
committed
Add nes-slrom platform.
1 parent f17cc0a commit 432ecbd

File tree

20 files changed

+161
-58
lines changed

20 files changed

+161
-58
lines changed

examples/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ if(HOSTED)
2727
install_example(init-functions)
2828
endif()
2929

30-
if(PLATFORM MATCHES ^nes-nrom)
31-
add_subdirectory(nes-nrom)
30+
if(PLATFORM MATCHES ^nes-)
31+
add_subdirectory(nes)
3232
endif()
File renamed without changes.
File renamed without changes.

mos-platform/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ add_subdirectory(nes)
4343
add_subdirectory(nes-nrom)
4444
add_subdirectory(nes-nrom-128)
4545
add_subdirectory(nes-nrom-256)
46+
add_subdirectory(nes-slrom)

mos-platform/common/ldscripts/CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@ install(
55
c.ld
66

77
bss.ld
8+
bss-sections.ld
9+
bss-symbols.ld
810
data.ld
11+
data-sections.ld
12+
data-symbols.ld
913
noinit.ld
14+
noinit-sections.ld
1015
rodata.ld
16+
rodata-sections.ld
1117
text.ld
12-
TYPE LIB
13-
)
18+
text-sections.ld
19+
TYPE LIB)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
__bss_start = .;
2+
*(.bss .bss.* COMMON)
3+
__bss_end = .;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__bss_size = SIZEOF(.bss);
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
.bss (NOLOAD) : {
2-
__bss_start = .;
3-
*(.bss .bss.* COMMON)
4-
__bss_end = .;
5-
}
6-
__bss_size = SIZEOF(.bss);
1+
.bss (NOLOAD) : { INCLUDE bss-sections.ld }
2+
INCLUDE bss-symbols.ld
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
__data_start = .;
2+
*(.data .data.*)
3+
__data_end = .;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
__data_load_start = LOADADDR(.data);
2+
__data_size = SIZEOF(.data);

0 commit comments

Comments
 (0)