1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 23:29:39 +00:00

Renamed JUMPTABLE and cleaned up module.cfg.

This change was suppsed to fix the issue that the former JUMPTABLE is merked as 'ro' while it is actually written to in several scenarios. When drivers are converted using co65 and then compiled into ROMs the JUMPTABLE isn't copied to RAM and therefore the write operations in question fail.

However unfortunately I didn't succeed in changing that :-( Just setting the former JUMPTABLE to 'rw' broke the drivers. So I placed the DATA segment directly after the former JUMPTABLE segment. This made the drivers converted with co65 work again - obviously after changing libsrc/Makefile:235 from '--code-label' to '--data-label'. But the actual dynamic drivers still didn't work as the former JUMPTABLE wasn't placed as the beginning of the loaded file anymore. That effect could be changed by exchanging src/ld65/o65.c:1391 with src/ld65/o65.c:1394 but doing so broke the drivers again :-((
This commit is contained in:
Oliver Schmidt 2014-05-01 21:43:34 +02:00
parent 2a3fbc6e36
commit d6c3bd29ac
75 changed files with 82 additions and 83 deletions

View File

@ -1,16 +1,15 @@
MEMORY {
ZP: file = %O, start = $0000, size = $0100, type = rw, define = yes;
ZP: start = $0000, size = $0100;
COMBINED: file = %O, start = $0000, size = $FFFF;
}
SEGMENTS {
JUMPTABLE: load = COMBINED, type = ro;
INIT: load = COMBINED, type = ro, optional = yes;
CODE: load = COMBINED, type = ro;
RODATA: load = COMBINED, type = ro;
DATA: load = COMBINED, type = rw, define = yes;
BSS: load = COMBINED, type = bss, define = yes;
ZEROPAGE: load = ZP, type = zp;
EXTZP: load = ZP, type = zp, optional = yes;
ZEROPAGE: load = ZP, type = zp;
EXTZP: load = ZP, type = zp, optional = yes;
HEADER: load = COMBINED, type = ro;
CODE: load = COMBINED, type = ro;
RODATA: load = COMBINED, type = ro;
DATA: load = COMBINED, type = rw;
BSS: load = COMBINED, type = bss;
}
FILES {
%O: format = o65;

View File

@ -13,7 +13,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -29,7 +29,7 @@ PREAD := $FB1E ; Read paddle in X, return AD conv. value in Y
; Header. Includes jump table.
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -28,7 +28,7 @@ status := $0778
; ------------------------------------------------------------------------
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature
.byte $6D, $6F, $75 ; "mou"

View File

@ -28,7 +28,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature
.byte $73, $65, $72 ; "ser"

View File

@ -68,7 +68,7 @@ Y2 := ptr4
; ------------------------------------------------------------------------
.segment "JUMPTABLE"
.segment "HEADER"
; Header. Includes jump table and constants.

View File

@ -38,7 +38,7 @@ Y2 := ptr4
; ------------------------------------------------------------------------
.segment "JUMPTABLE"
.segment "HEADER"
; Header. Includes jump table and constants.

View File

@ -36,7 +36,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -19,7 +19,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -18,7 +18,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -14,7 +14,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
HEADER:

View File

@ -31,7 +31,7 @@ DISABLE_TIMEOUT = 30 ; # of vertical blank interrupts after w
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
HEADER:

View File

@ -13,7 +13,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
HEADER:

View File

@ -14,7 +14,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -18,7 +18,7 @@
;
; ----------------------------------------------------------------------
.segment "JUMPTABLE"
.segment "HEADER"
; Header

View File

@ -15,7 +15,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -31,7 +31,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature
.byte $73, $65, $72 ; "ser"

View File

@ -19,7 +19,7 @@ YSIZE = 8 ; System font height
; ------------------------------------------------------------------------
; Header. Includes jump table and constants.
.segment "JUMPTABLE"
.segment "HEADER"
; The first part of the header is a structure that has a signature,
; and defines the capabilities of the driver.

View File

@ -19,7 +19,7 @@ YSIZE = 8 ; System font height
; ------------------------------------------------------------------------
; Header. Includes jump table and constants.
.segment "JUMPTABLE"
.segment "HEADER"
; First part of the header is a structure that has a magic and defines the
; capabilities of the driver

View File

@ -20,7 +20,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -18,7 +18,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -21,7 +21,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -19,7 +19,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -18,7 +18,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -16,7 +16,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -17,7 +17,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -18,7 +18,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -17,7 +17,7 @@ IRQInd = $2FD
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
HEADER:

View File

@ -13,7 +13,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table.
.segment "JUMPTABLE"
.segment "HEADER"
HEADER:

View File

@ -16,7 +16,7 @@ IRQInd = $2FD
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
HEADER:

View File

@ -15,7 +15,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
HEADER:

View File

@ -30,7 +30,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -48,7 +48,7 @@ VDC_DATA = 31
; ------------------------------------------------------------------------
; Header. Includes jump table and constants.
.segment "JUMPTABLE"
.segment "HEADER"
; First part of the header is a structure that has a magic and defines the
; capabilities of the driver

View File

@ -49,7 +49,7 @@ VDC_DATA = 31
; ------------------------------------------------------------------------
; Header. Includes jump table and constants.
.segment "JUMPTABLE"
.segment "HEADER"
; First part of the header is a structure that has a magic and defines the
; capabilities of the driver

View File

@ -17,7 +17,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -15,7 +15,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -15,7 +15,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -20,7 +20,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -15,7 +15,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -17,7 +17,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -19,7 +19,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -17,7 +17,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -20,7 +20,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -19,7 +19,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -16,7 +16,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -18,7 +18,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -16,7 +16,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -17,7 +17,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -33,7 +33,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
HEADER:

View File

@ -13,7 +13,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table.
.segment "JUMPTABLE"
.segment "HEADER"
HEADER:

View File

@ -32,7 +32,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
HEADER:

View File

@ -15,7 +15,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
HEADER:

View File

@ -30,7 +30,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -16,7 +16,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table and constants.
.segment "JUMPTABLE"
.segment "HEADER"
; First part of the header is a structure that has a magic and defines the
; capabilities of the driver

View File

@ -17,7 +17,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -18,7 +18,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -17,7 +17,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table.
.segment "JUMPTABLE"
.segment "HEADER"
HEADER:

View File

@ -16,7 +16,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
HEADER:

View File

@ -31,7 +31,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -17,7 +17,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -31,7 +31,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -14,7 +14,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -15,7 +15,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -33,7 +33,7 @@ VDC_DATA = 31
; ------------------------------------------------------------------------
; Header. Includes jump table and constants.
.segment "JUMPTABLE"
.segment "HEADER"
; First part of the header is a structure that has a magic signature,
; and defines the capabilities of the driver.

View File

@ -19,7 +19,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -12,7 +12,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature
.byte $73, $65, $72 ; "ser"

View File

@ -20,7 +20,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table and constants.
.segment "JUMPTABLE"
.segment "HEADER"
; First part of the header is a structure that has a magic and defines the
; capabilities of the driver

View File

@ -16,7 +16,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -19,7 +19,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table and constants.
.segment "JUMPTABLE"
.segment "HEADER"
; First part of the header is a structure that has a magic and defines the
; capabilities of the driver

View File

@ -17,7 +17,7 @@ VIA_DDRA := $E843 ; Data direction register A
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -14,7 +14,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -17,7 +17,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -30,7 +30,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -16,7 +16,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature

View File

@ -18,7 +18,7 @@
; ------------------------------------------------------------------------
; Header. Includes jump table
.segment "JUMPTABLE"
.segment "HEADER"
; Driver signature