mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-08-19 11:29:22 +00:00
Removed custom linker config files.
This commit is contained in:
parent
3659c49430
commit
dbf6fe00a0
@ -1,21 +0,0 @@
|
|||||||
SYMBOLS {
|
|
||||||
__EXEHDR__: type = import;
|
|
||||||
__LOADADDR__: type = weak, value = __STARTUP_RUN__;
|
|
||||||
__LOADSIZE__: type = weak, value = __BSS_RUN__ - __STARTUP_RUN__;
|
|
||||||
}
|
|
||||||
MEMORY {
|
|
||||||
ZP: start = $00, size = $08;
|
|
||||||
IP65ZP: start = $E0, size = $00; #zero size as we hand allocate all ZP locations
|
|
||||||
HEADER: start = $0800, size = $04, file = %O;
|
|
||||||
RAM: start = $0803, size = $77FC, file = %O;
|
|
||||||
}
|
|
||||||
SEGMENTS {
|
|
||||||
ZEROPAGE: load = ZP, type = zp;
|
|
||||||
IP65ZP: load = IP65ZP, type = zp, optional = yes;
|
|
||||||
EXEHDR: load = HEADER, type = ro;
|
|
||||||
STARTUP: load = RAM, type = ro, define = yes;
|
|
||||||
CODE: load = RAM, type = ro;
|
|
||||||
RODATA: load = RAM, type = ro;
|
|
||||||
DATA: load = RAM, type = rw;
|
|
||||||
BSS: load = RAM, type = bss, define = yes;
|
|
||||||
}
|
|
@ -1,22 +0,0 @@
|
|||||||
SYMBOLS {
|
|
||||||
__LOADADDR__: type = import;
|
|
||||||
__EXEHDR__: type = import;
|
|
||||||
}
|
|
||||||
MEMORY {
|
|
||||||
ZP: start = $02, size = $1A;
|
|
||||||
IP65ZP: start = $5F, size = $10;
|
|
||||||
LOADADDR: start = $07FF, size = $02, file = %O;
|
|
||||||
HEADER: start = $0801, size = $0C, file = %O;
|
|
||||||
RAM: start = $080D, size = $77F3, file = %O;
|
|
||||||
}
|
|
||||||
SEGMENTS {
|
|
||||||
ZEROPAGE: load = ZP, type = zp;
|
|
||||||
IP65ZP: load = IP65ZP, type = zp, optional = yes;
|
|
||||||
LOADADDR: load = LOADADDR, type = ro;
|
|
||||||
EXEHDR: load = HEADER, type = ro;
|
|
||||||
STARTUP: load = RAM, type = ro, define = yes;
|
|
||||||
CODE: load = RAM, type = ro;
|
|
||||||
RODATA: load = RAM, type = ro, optional = yes;
|
|
||||||
DATA: load = RAM, type = rw;
|
|
||||||
BSS: load = RAM, type = bss;
|
|
||||||
}
|
|
@ -1,23 +0,0 @@
|
|||||||
# Memory configuration for the VIC20 with 32K RAM Cartridge
|
|
||||||
SYMBOLS {
|
|
||||||
__LOADADDR__: type = import;
|
|
||||||
__EXEHDR__: type = import;
|
|
||||||
}
|
|
||||||
MEMORY {
|
|
||||||
ZP: start = $02, size = $1A;
|
|
||||||
IP65ZP: start = $5F, size = $10;
|
|
||||||
LOADADDR: start = $11FF, size = $02, file = %O;
|
|
||||||
HEADER: start = $1201, size = $0C, file = %O;
|
|
||||||
RAM: start = $120D, size = $6DF3, file = %O;
|
|
||||||
}
|
|
||||||
SEGMENTS {
|
|
||||||
ZEROPAGE: load = ZP, type = zp;
|
|
||||||
IP65ZP: load = IP65ZP, type = zp, optional = yes;
|
|
||||||
LOADADDR: load = LOADADDR, type = ro;
|
|
||||||
EXEHDR: load = HEADER, type = ro;
|
|
||||||
STARTUP: load = RAM, type = ro, define = yes;
|
|
||||||
CODE: load = RAM, type = ro;
|
|
||||||
RODATA: load = RAM, type = ro, optional = yes;
|
|
||||||
DATA: load = RAM, type = rw;
|
|
||||||
BSS: load = RAM, type = bss;
|
|
||||||
}
|
|
@ -23,10 +23,10 @@ DRIVERS=\
|
|||||||
|
|
||||||
all: $(DRIVERS)
|
all: $(DRIVERS)
|
||||||
|
|
||||||
c64rrnet.lib: rr-net.o cs8900a.o c64print.o c64timer.o c64kernal.o c64input.o petscii_charconv.o generic_zero_page.o
|
c64rrnet.lib: rr-net.o cs8900a.o c64zeropage.o c64print.o c64timer.o c64kernal.o c64input.o petscii_charconv.o
|
||||||
ar65 a $@ $^
|
ar65 a $@ $^
|
||||||
|
|
||||||
c64wiznet.lib: w5100.o c64print.o c64timer.o c64kernal.o c64input.o petscii_charconv.o generic_zero_page.o
|
c64wiznet.lib: w5100.o c64zeropage.o c64print.o c64timer.o c64kernal.o c64input.o petscii_charconv.o
|
||||||
ar65 a $@ $^
|
ar65 a $@ $^
|
||||||
|
|
||||||
a2lancegs.lib: lan91c96.o a2print.o a2timer.o a2kernal.o a2input.o a2charconv.o a2_zero_page.o
|
a2lancegs.lib: lan91c96.o a2print.o a2timer.o a2kernal.o a2input.o a2charconv.o a2_zero_page.o
|
||||||
@ -35,7 +35,7 @@ a2lancegs.lib: lan91c96.o a2print.o a2timer.o a2kernal.o a2input.o a2charconv.o
|
|||||||
a2uther.lib: uthernet.o cs8900a.o a2print.o a2timer.o a2kernal.o a2input.o a2charconv.o a2_zero_page.o
|
a2uther.lib: uthernet.o cs8900a.o a2print.o a2timer.o a2kernal.o a2input.o a2charconv.o a2_zero_page.o
|
||||||
ar65 a $@ $^
|
ar65 a $@ $^
|
||||||
|
|
||||||
vic20rrnet.lib: vic20-rr-net.o cs8900a.o vic20print.o vic20timer.o vic20kernal.o vic20input.o petscii_charconv.o generic_zero_page.o
|
vic20rrnet.lib: vic20-rr-net.o cs8900a.o vic20zeropage.o vic20print.o vic20timer.o vic20kernal.o vic20input.o petscii_charconv.o
|
||||||
ar65 a $@ $^
|
ar65 a $@ $^
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
; zero page definitions
|
; zero page definitions
|
||||||
; this 'generic' file just puts everything into a ZP segment
|
|
||||||
; and lets LD65 in conjunction with cfg files assign zero page locations
|
|
||||||
; however this can be overridden in the case that all necessary zp variables
|
|
||||||
; cant be crammed into a contiguous segment, e.g. on the Apple ][
|
|
||||||
|
|
||||||
.exportzp copy_src
|
.exportzp copy_src
|
||||||
.exportzp copy_dest
|
.exportzp copy_dest
|
||||||
@ -11,15 +7,12 @@
|
|||||||
.exportzp buffer_ptr
|
.exportzp buffer_ptr
|
||||||
.exportzp eth_packet
|
.exportzp eth_packet
|
||||||
|
|
||||||
|
copy_src = $5F ; also $60 - source pointer
|
||||||
.segment "IP65ZP" : zeropage
|
copy_dest = $61 ; also $62 - destination pointer
|
||||||
|
dns_hostname = $63 ; also $64
|
||||||
copy_src: .res 2 ; source pointer
|
tftp_filename = $65 ; also $66 - name of file to d/l or filemask to get directory listing for
|
||||||
copy_dest: .res 2 ; destination pointer
|
buffer_ptr = $67 ; also $68 - source pointer
|
||||||
dns_hostname: .res 2
|
eth_packet = $69 ; also $6A
|
||||||
tftp_filename: .res 2 ; name of file to d/l or filemask to get directory listing for
|
|
||||||
buffer_ptr: .res 2 ; source pointer
|
|
||||||
eth_packet: .res 2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
36
drivers/vic20zeropage.s
Normal file
36
drivers/vic20zeropage.s
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
; zero page definitions
|
||||||
|
|
||||||
|
.exportzp copy_src
|
||||||
|
.exportzp copy_dest
|
||||||
|
.exportzp dns_hostname
|
||||||
|
.exportzp tftp_filename
|
||||||
|
.exportzp buffer_ptr
|
||||||
|
.exportzp eth_packet
|
||||||
|
|
||||||
|
copy_src = $5F ; also $60 - source pointer
|
||||||
|
copy_dest = $61 ; also $62 - destination pointer
|
||||||
|
dns_hostname = $63 ; also $64
|
||||||
|
tftp_filename = $65 ; also $66 - name of file to d/l or filemask to get directory listing for
|
||||||
|
buffer_ptr = $67 ; also $68 - source pointer
|
||||||
|
eth_packet = $69 ; also $6A
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
; -- LICENSE --
|
||||||
|
; The contents of this file are subject to the Mozilla Public License
|
||||||
|
; Version 1.1 (the "License"); you may not use this file except in
|
||||||
|
; compliance with the License. You may obtain a copy of the License at
|
||||||
|
; http://www.mozilla.org/MPL/
|
||||||
|
;
|
||||||
|
; Software distributed under the License is distributed on an "AS IS"
|
||||||
|
; basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
|
||||||
|
; License for the specific language governing rights and limitations
|
||||||
|
; under the License.
|
||||||
|
;
|
||||||
|
; The Original Code is ip65.
|
||||||
|
;
|
||||||
|
; The Initial Developer of the Original Code is Jonno Downes,
|
||||||
|
; jonno@jamtronix.com.
|
||||||
|
; Portions created by the Initial Developer are Copyright (C) 2013
|
||||||
|
; Jonno Downes. All Rights Reserved.
|
||||||
|
; -- LICENSE END --
|
@ -1,38 +0,0 @@
|
|||||||
MEMORY {
|
|
||||||
ZP: start = $02, size = $1A, type = rw ,define = yes ;
|
|
||||||
IP65ZP: start = $5f, size = $10, type = rw,define = yes;
|
|
||||||
RAM: start = $07FF, size = $c7ab, file = %O,define = yes;
|
|
||||||
}
|
|
||||||
|
|
||||||
SEGMENTS {
|
|
||||||
STARTUP: load = RAM, type = ro;
|
|
||||||
LOWCODE: load = RAM, type = ro, optional = yes;
|
|
||||||
INIT: load = RAM, type = ro, define = yes, optional = yes;
|
|
||||||
CODE: load = RAM, type = ro;
|
|
||||||
RODATA: load = RAM, type = ro;
|
|
||||||
DATA: load = RAM, type = rw;
|
|
||||||
BSS: load = RAM, type = bss, define = yes;
|
|
||||||
HEAP: load = RAM, type = bss, optional = yes; # must sit just below stack
|
|
||||||
ZPSAVE: load = RAM, type = bss;
|
|
||||||
|
|
||||||
ZEROPAGE: load = ZP, type = zp;
|
|
||||||
IP65ZP: load = IP65ZP, type = zp, optional=yes;
|
|
||||||
|
|
||||||
}
|
|
||||||
FEATURES {
|
|
||||||
CONDES: segment = INIT,
|
|
||||||
type = constructor,
|
|
||||||
label = __CONSTRUCTOR_TABLE__,
|
|
||||||
count = __CONSTRUCTOR_COUNT__;
|
|
||||||
CONDES: segment = RODATA,
|
|
||||||
type = destructor,
|
|
||||||
label = __DESTRUCTOR_TABLE__,
|
|
||||||
count = __DESTRUCTOR_COUNT__;
|
|
||||||
CONDES: segment = RODATA,
|
|
||||||
type = interruptor,
|
|
||||||
label = __INTERRUPTOR_TABLE__,
|
|
||||||
count = __INTERRUPTOR_COUNT__;
|
|
||||||
}
|
|
||||||
SYMBOLS {
|
|
||||||
__STACKSIZE__: value = $0800, weak = yes; # 2k stack
|
|
||||||
}
|
|
@ -90,23 +90,23 @@ dsk: ip65.dsk
|
|||||||
%.o: %.s
|
%.o: %.s
|
||||||
$(AS) $(AFLAGS) $<
|
$(AS) $(AFLAGS) $<
|
||||||
|
|
||||||
%.prg: %.o $(IP65LIB) $(C64DRIVERLIB) $(INCFILES) ../cfg/c64prg.cfg
|
%.prg: %.o $(IP65LIB) $(C64DRIVERLIB) $(INCFILES)
|
||||||
$(LD) -o $*.prg -C ../cfg/c64prg.cfg -m $*.c64.map -vm $< $(IP65LIB) $(C64DRIVERLIB) c64.lib
|
$(LD) -o $*.prg -t c64 -m $*.c64.map -vm $< $(IP65LIB) $(C64DRIVERLIB) c64.lib
|
||||||
|
|
||||||
%_tcp.prg: %.o $(IP65TCPLIB) $(C64DRIVERLIB) $(INCFILES) ../cfg/c64prg.cfg
|
%_tcp.prg: %.o $(IP65TCPLIB) $(C64DRIVERLIB) $(INCFILES)
|
||||||
$(LD) -o $(subst _tcp,,$*).prg -C ../cfg/c64prg.cfg -m $(subst _tcp,,$*).c64.map -vm $< $(IP65TCPLIB) $(C64DRIVERLIB) c64.lib
|
$(LD) -o $(subst _tcp,,$*).prg -t c64 -m $(subst _tcp,,$*).c64.map -vm $< $(IP65TCPLIB) $(C64DRIVERLIB) c64.lib
|
||||||
|
|
||||||
%.bin: %.o $(IP65LIB) $(A2DRIVERLIB) $(INCFILES) ../cfg/a2bin.cfg
|
%.bin: %.o $(IP65LIB) $(A2DRIVERLIB) $(INCFILES)
|
||||||
$(LD) -o $*.bin -C ../cfg/a2bin.cfg -m $*.a2.map -vm $< $(IP65LIB) $(A2DRIVERLIB) apple2.lib
|
$(LD) -o $*.bin -t apple2 -m $*.a2.map -vm $< $(IP65LIB) $(A2DRIVERLIB) apple2.lib
|
||||||
|
|
||||||
%_tcp.bin: %.o $(IP65TCPLIB) $(A2DRIVERLIB) $(INCFILES) ../cfg/a2bin.cfg
|
%_tcp.bin: %.o $(IP65TCPLIB) $(A2DRIVERLIB) $(INCFILES)
|
||||||
$(LD) -o $(subst _tcp,,$*).bin -C ../cfg/a2bin.cfg -m $(subst _tcp,,$*).a2.map -vm $< $(IP65TCPLIB) $(A2DRIVERLIB) apple2.lib
|
$(LD) -o $(subst _tcp,,$*).bin -t apple2 -m $(subst _tcp,,$*).a2.map -vm $< $(IP65TCPLIB) $(A2DRIVERLIB) apple2.lib
|
||||||
|
|
||||||
%.vicprg: %.o $(IP65LIB) $(VICDRIVERLIB) $(INCFILES) ../cfg/vic20prg.cfg
|
%.vicprg: %.o $(IP65LIB) $(VICDRIVERLIB) $(INCFILES)
|
||||||
$(LD) -o $*.vicprg -C ../cfg/vic20prg.cfg -m $*.vic.map -vm $< $(IP65LIB) $(VICDRIVERLIB) vic20.lib
|
$(LD) -o $*.vicprg -C vic20-32k.cfg -m $*.vic.map -vm $< $(IP65LIB) $(VICDRIVERLIB) vic20.lib
|
||||||
|
|
||||||
%_tcp.vicprg: %.o $(IP65TCPLIB) $(VICDRIVERLIB) $(INCFILES) ../cfg/vic20prg.cfg
|
%_tcp.vicprg: %.o $(IP65TCPLIB) $(VICDRIVERLIB) $(INCFILES)
|
||||||
$(LD) -o $(subst _tcp,,$*).vicprg -C ../cfg/vic20prg.cfg -m $(subst _tcp,,$*).vic.map -vm $< $(IP65TCPLIB) $(VICDRIVERLIB) vic20.lib
|
$(LD) -o $(subst _tcp,,$*).vicprg -C vic20-32k.cfg -m $(subst _tcp,,$*).vic.map -vm $< $(IP65TCPLIB) $(VICDRIVERLIB) vic20.lib
|
||||||
|
|
||||||
ip65.d64: prg
|
ip65.d64: prg
|
||||||
$(C1541) -format ip65,00 d64 $@
|
$(C1541) -format ip65,00 d64 $@
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
.import cifs_start
|
.import cifs_start
|
||||||
|
|
||||||
|
|
||||||
|
; keep LD65 happy
|
||||||
|
.segment "ZPSAVE"
|
||||||
|
|
||||||
|
|
||||||
.segment "STARTUP"
|
.segment "STARTUP"
|
||||||
|
|
||||||
; switch to lower case charset
|
; switch to lower case charset
|
||||||
|
@ -11,6 +11,10 @@
|
|||||||
.import cfg_get_configuration_ptr
|
.import cfg_get_configuration_ptr
|
||||||
|
|
||||||
|
|
||||||
|
; keep LD65 happy
|
||||||
|
.segment "ZPSAVE"
|
||||||
|
|
||||||
|
|
||||||
.segment "STARTUP"
|
.segment "STARTUP"
|
||||||
|
|
||||||
; switch to lower case charset
|
; switch to lower case charset
|
||||||
|
@ -8,6 +8,10 @@
|
|||||||
.import dotted_quad_value
|
.import dotted_quad_value
|
||||||
|
|
||||||
|
|
||||||
|
; keep LD65 happy
|
||||||
|
.segment "ZPSAVE"
|
||||||
|
|
||||||
|
|
||||||
.segment "STARTUP"
|
.segment "STARTUP"
|
||||||
|
|
||||||
; switch to lower case charset
|
; switch to lower case charset
|
||||||
|
@ -22,6 +22,10 @@
|
|||||||
temp_buff = copy_dest
|
temp_buff = copy_dest
|
||||||
|
|
||||||
|
|
||||||
|
; keep LD65 happy
|
||||||
|
.segment "ZPSAVE"
|
||||||
|
|
||||||
|
|
||||||
.segment "STARTUP"
|
.segment "STARTUP"
|
||||||
|
|
||||||
; switch to lower case charset
|
; switch to lower case charset
|
||||||
|
@ -8,6 +8,10 @@
|
|||||||
.import http_get_value
|
.import http_get_value
|
||||||
|
|
||||||
|
|
||||||
|
; keep LD65 happy
|
||||||
|
.segment "ZPSAVE"
|
||||||
|
|
||||||
|
|
||||||
.segment "STARTUP"
|
.segment "STARTUP"
|
||||||
|
|
||||||
lda #14
|
lda #14
|
||||||
|
@ -11,6 +11,10 @@
|
|||||||
.import http_get_value
|
.import http_get_value
|
||||||
|
|
||||||
|
|
||||||
|
; keep LD65 happy
|
||||||
|
.segment "ZPSAVE"
|
||||||
|
|
||||||
|
|
||||||
.segment "STARTUP"
|
.segment "STARTUP"
|
||||||
|
|
||||||
; switch to lower case charset
|
; switch to lower case charset
|
||||||
|
@ -19,6 +19,10 @@
|
|||||||
temp_buff = copy_dest
|
temp_buff = copy_dest
|
||||||
|
|
||||||
|
|
||||||
|
; keep LD65 happy
|
||||||
|
.segment "ZPSAVE"
|
||||||
|
|
||||||
|
|
||||||
.segment "STARTUP"
|
.segment "STARTUP"
|
||||||
|
|
||||||
; switch to lower case charset
|
; switch to lower case charset
|
||||||
|
@ -13,6 +13,10 @@
|
|||||||
.import icmp_ping
|
.import icmp_ping
|
||||||
|
|
||||||
|
|
||||||
|
; keep LD65 happy
|
||||||
|
.segment "ZPSAVE"
|
||||||
|
|
||||||
|
|
||||||
.segment "STARTUP"
|
.segment "STARTUP"
|
||||||
|
|
||||||
; switch to lower case charset
|
; switch to lower case charset
|
||||||
|
@ -13,6 +13,10 @@
|
|||||||
.import sntp_get_time
|
.import sntp_get_time
|
||||||
|
|
||||||
|
|
||||||
|
; keep LD65 happy
|
||||||
|
.segment "ZPSAVE"
|
||||||
|
|
||||||
|
|
||||||
.segment "STARTUP"
|
.segment "STARTUP"
|
||||||
|
|
||||||
lda #14
|
lda #14
|
||||||
|
@ -34,6 +34,10 @@
|
|||||||
.import sub_16_16
|
.import sub_16_16
|
||||||
|
|
||||||
|
|
||||||
|
; keep LD65 happy
|
||||||
|
.segment "ZPSAVE"
|
||||||
|
|
||||||
|
|
||||||
.segment "STARTUP"
|
.segment "STARTUP"
|
||||||
|
|
||||||
; switch to lower case charset
|
; switch to lower case charset
|
||||||
|
@ -17,6 +17,10 @@
|
|||||||
.importzp tftp_filename
|
.importzp tftp_filename
|
||||||
|
|
||||||
|
|
||||||
|
; keep LD65 happy
|
||||||
|
.segment "ZPSAVE"
|
||||||
|
|
||||||
|
|
||||||
.segment "STARTUP"
|
.segment "STARTUP"
|
||||||
|
|
||||||
; switch to lower case charset
|
; switch to lower case charset
|
||||||
|
Loading…
Reference in New Issue
Block a user