From 1945c9a2c6369e3f7d9836f6523fb34393ec2271 Mon Sep 17 00:00:00 2001 From: astoria-d Date: Wed, 25 Sep 2013 10:50:42 +0900 Subject: [PATCH] 4k segment remapping added to test app. --- tools/test-image/sample1.asm | 6 ++++++ tools/test-image/sample1.cfg | 51 +++++++++++++++++++++++--------------------- 2 files changed, 33 insertions(+), 24 deletions(-) diff --git a/tools/test-image/sample1.asm b/tools/test-image/sample1.asm index 2c1e310..ce99126 100644 --- a/tools/test-image/sample1.asm +++ b/tools/test-image/sample1.asm @@ -287,6 +287,12 @@ palettes: string: .byte "test2!" +;;;for DE1 internal memory constraints. +.segment "VECINFO_4k" + .word nmi_test + .word Reset + .word $0000 + .segment "VECINFO" .word nmi_test .word Reset diff --git a/tools/test-image/sample1.cfg b/tools/test-image/sample1.cfg index a1d4bc2..7d06701 100644 --- a/tools/test-image/sample1.cfg +++ b/tools/test-image/sample1.cfg @@ -1,27 +1,30 @@ -# ƒƒ‚ƒŠƒ}ƒbƒv -MEMORY { - HEADER: start = $0000, size = $0010, file = %O, fill = yes; - ROMST: start = $8000, size = $7ffa, type = ro, file = %O, fill = yes, define = yes; - ROMINFO: start = $fffa, size = $0006, type = ro, file = %O, fill = yes, define = yes; - ROMCHR: start = $0000, size = $2000, type = rw, define = yes; - ZP: start = $0000, size = $0020, type = rw, define = yes; - RAM: start = $0400, size = $0400, type = rw, define = yes; - STACK: start = $0200, size = $0200, type = rw, define = yes; - SRAM: start = $6000, size = $2000, type = rw, define = yes; -} - -# ƒZƒOƒƒ“ƒgƒ}ƒbƒv -SEGMENTS { - HEADER: load = HEADER, type = ro; - STARTUP: load = ROMST, type = ro, define = yes; - VECINFO: load = ROMINFO, type = ro, define = yes; - RODATA: load = ROMST, type = ro, define = yes; - DATA: load = ROMST, run = RAM,type = rw, define = yes; - BSS: load = RAM, type = bss, define = yes; - ZEROPAGE: load = ZP, type = zp; - CODE: load = ROMST, type = ro, define = yes; - CHARS: load = ROMCHR, type = ro; -} +# memory map +MEMORY { + HEADER: start = $0000, size = $0010, file = %O, fill = yes; + ROMST: start = $8000, size = $1ffa, type = ro, file = %O, fill = yes, define = yes; + ROMINFO_4k: start = $8ffa, size = $0006, type = ro, file = %O, fill = yes, define = yes; + ROMST_other: start = $9000, size = $6ffa, type = ro, file = %O, fill = yes, define = yes; + ROMINFO: start = $fffa, size = $0006, type = ro, file = %O, fill = yes, define = yes; + ROMCHR: start = $0000, size = $2000, type = rw, define = yes; + ZP: start = $0000, size = $0020, type = rw, define = yes; + RAM: start = $0400, size = $0400, type = rw, define = yes; + STACK: start = $0200, size = $0200, type = rw, define = yes; + SRAM: start = $6000, size = $2000, type = rw, define = yes; +} + +# segment map +SEGMENTS { + HEADER: load = HEADER, type = ro; + STARTUP: load = ROMST, type = ro, define = yes; + VECINFO_4k: load = ROMINFO_4k, type = ro, define = yes; + VECINFO: load = ROMINFO, type = ro, define = yes; + RODATA: load = ROMST, type = ro, define = yes; + DATA: load = ROMST, run = RAM,type = rw, define = yes; + BSS: load = RAM, type = bss, define = yes; + ZEROPAGE: load = ZP, type = zp; + CODE: load = ROMST, type = ro, define = yes; + CHARS: load = ROMCHR, type = ro; +} FEATURES { CONDES: segment = RODATA, -- 2.11.0