2024-07-07 17:37:04 +02:00
|
|
|
(define memories '(
|
|
|
|
|
|
|
|
(memory RAM
|
|
|
|
(address (#x000200 . #x001FFF))
|
|
|
|
(section zhuge)
|
|
|
|
(section znear)
|
|
|
|
(section zdata)
|
2024-07-08 05:08:08 +02:00
|
|
|
(section huge)
|
2024-07-07 17:37:04 +02:00
|
|
|
(section heap)
|
|
|
|
)
|
|
|
|
|
2024-07-11 07:50:40 +02:00
|
|
|
(memory BOOT
|
|
|
|
(address (#x008000 . #x0082FF))
|
|
|
|
(scatter-to boot_rom)
|
|
|
|
(section boot)
|
|
|
|
)
|
|
|
|
|
2024-07-07 17:37:04 +02:00
|
|
|
(memory ROM
|
2024-07-11 07:50:40 +02:00
|
|
|
(address (#xC00000 . #xC0FFFF))
|
|
|
|
(section (boot_rom #xC08000))
|
2024-07-08 05:08:08 +02:00
|
|
|
(section (code #xC08300))
|
2024-07-07 17:37:04 +02:00
|
|
|
(section farcode)
|
|
|
|
(section cdata)
|
|
|
|
(section switch)
|
|
|
|
(section near)
|
|
|
|
(section data)
|
2024-07-08 05:08:08 +02:00
|
|
|
(section chuge)
|
|
|
|
(section ihuge)
|
2024-07-08 05:35:11 +02:00
|
|
|
(section data_init_table)
|
2024-07-07 17:37:04 +02:00
|
|
|
(section (irq_trampolines #xC0F000))
|
|
|
|
(section (irq_vectors #xC0FF80))
|
|
|
|
)
|
|
|
|
|
|
|
|
(memory Stack
|
|
|
|
(address (#x000100 . #x0001FF))
|
|
|
|
(section (stack #x00100))
|
|
|
|
)
|
|
|
|
|
|
|
|
(memory DirectPage
|
|
|
|
(address (#x000000 . #x0000FF))
|
|
|
|
(section
|
|
|
|
(registers #x000004)
|
|
|
|
(ztiny)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(block stack (size #x100)) ; machine stack size
|
|
|
|
|
|
|
|
(base-address _DirectPageStart DirectPage 0)
|
|
|
|
|
2024-07-11 07:50:40 +02:00
|
|
|
(base-address _NearBaseAddress RAM #x00)
|
2024-07-07 17:37:04 +02:00
|
|
|
))
|