From 8eb60de6c21fbaf1b983b8a91b6e467cf7782fca Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Wed, 6 Jan 2021 00:29:00 -0500 Subject: [PATCH] linker_scripts: many missing --- linker_scripts/apple2_0.inc | 12 ++++++++++++ linker_scripts/apple2_400.inc | 12 ++++++++++++ linker_scripts/apple2_50_zp.inc | 12 ++++++++++++ linker_scripts/apple2_860.inc | 12 ++++++++++++ linker_scripts/apple2_b8.inc | 12 ++++++++++++ linker_scripts/apple2_c0.inc | 12 ++++++++++++ 6 files changed, 72 insertions(+) create mode 100644 linker_scripts/apple2_0.inc create mode 100644 linker_scripts/apple2_400.inc create mode 100644 linker_scripts/apple2_50_zp.inc create mode 100644 linker_scripts/apple2_860.inc create mode 100644 linker_scripts/apple2_b8.inc create mode 100644 linker_scripts/apple2_c0.inc diff --git a/linker_scripts/apple2_0.inc b/linker_scripts/apple2_0.inc new file mode 100644 index 00000000..3a6e83f3 --- /dev/null +++ b/linker_scripts/apple2_0.inc @@ -0,0 +1,12 @@ +MEMORY { + ZP: start = $00, size = $1A, type = rw; + RAM: start = $0, size = $8E00, file = %O; +} + +SEGMENTS { +CODE: load = RAM, type = ro; +RODATA: load = RAM, type = ro; +DATA: load = RAM, type = rw; +BSS: load = RAM, type = bss, define = yes; +ZEROPAGE: load = ZP, type = zp; +} diff --git a/linker_scripts/apple2_400.inc b/linker_scripts/apple2_400.inc new file mode 100644 index 00000000..2b65afca --- /dev/null +++ b/linker_scripts/apple2_400.inc @@ -0,0 +1,12 @@ +MEMORY { + ZP: start = $00, size = $1A, type = rw; + RAM: start = $400, size = $8E00, file = %O; +} + +SEGMENTS { +CODE: load = RAM, type = ro, align = $100; +RODATA: load = RAM, type = ro; +DATA: load = RAM, type = rw; +BSS: load = RAM, type = bss, define = yes; +ZEROPAGE: load = ZP, type = zp; +} diff --git a/linker_scripts/apple2_50_zp.inc b/linker_scripts/apple2_50_zp.inc new file mode 100644 index 00000000..27eded04 --- /dev/null +++ b/linker_scripts/apple2_50_zp.inc @@ -0,0 +1,12 @@ +MEMORY { + ZP: start = $50, size = $80, type = rw; + RAM: start = $50, size = $8E00, file = %O; +} + +SEGMENTS { +#CODE: load = RAM, type = ro; +#RODATA: load = RAM, type = ro; +#DATA: load = RAM, type = rw; +#BSS: load = RAM, type = bss, define = yes; +ZEROPAGE: load = ZP, type = ro; +} diff --git a/linker_scripts/apple2_860.inc b/linker_scripts/apple2_860.inc new file mode 100644 index 00000000..e528d96e --- /dev/null +++ b/linker_scripts/apple2_860.inc @@ -0,0 +1,12 @@ +MEMORY { + ZP: start = $00, size = $1A, type = rw; + RAM: start = $860, size = $8E00, file = %O; +} + +SEGMENTS { +CODE: load = RAM, type = ro, align = $1; +RODATA: load = RAM, type = ro; +DATA: load = RAM, type = rw; +BSS: load = RAM, type = bss, define = yes; +ZEROPAGE: load = ZP, type = zp; +} diff --git a/linker_scripts/apple2_b8.inc b/linker_scripts/apple2_b8.inc new file mode 100644 index 00000000..50531805 --- /dev/null +++ b/linker_scripts/apple2_b8.inc @@ -0,0 +1,12 @@ +MEMORY { + ZP: start = $00, size = $1A, type = rw; + RAM: start = $B8, size = $8E00, file = %O; +} + +SEGMENTS { +CODE: load = RAM, type = ro; +RODATA: load = RAM, type = ro; +DATA: load = RAM, type = rw; +BSS: load = RAM, type = bss, define = yes; +ZEROPAGE: load = ZP, type = zp; +} diff --git a/linker_scripts/apple2_c0.inc b/linker_scripts/apple2_c0.inc new file mode 100644 index 00000000..7ace6f35 --- /dev/null +++ b/linker_scripts/apple2_c0.inc @@ -0,0 +1,12 @@ +MEMORY { + ZP: start = $00, size = $1A, type = rw; + RAM: start = $C0, size = $8E00, file = %O; +} + +SEGMENTS { +CODE: load = RAM, type = ro; +RODATA: load = RAM, type = ro; +DATA: load = RAM, type = rw; +BSS: load = RAM, type = bss, define = yes; +ZEROPAGE: load = ZP, type = zp; +}