moved cs8900a code from core to driver

git-svn-id: http://svn.code.sf.net/p/netboot65/code@288 93682198-c243-4bdb-bd91-e943c89aac3b
This commit is contained in:
jonnosan 2010-12-09 10:12:40 +00:00
parent b37e2a2e03
commit 0b221b77ad
6 changed files with 60 additions and 41 deletions

View File

@ -216,8 +216,10 @@ install_new_vectors_loop:
.byte "NO RR-NET FOUND - UNINSTALLING",0
@init_ok:
; jsr $A644 ;do a "NEW"
; jmp $A474 ;"READY" prompt
lda CHAIN_FLAG
jsr $A644 ;do a "NEW"
jmp $A474 ;"READY" prompt
rts ;so BASIC will LOAD & RUN INDEX.BAS
welcome_banner:

View File

@ -1,4 +1,3 @@
# CA65 config for a M/L stub that will use memory from $6000..$A000 and $c010..$cfff
MEMORY {
IP65ZP: start = $A3, size = $12, type = rw;

View File

@ -9,24 +9,32 @@ AFLAGS=
%.o: %.s
$(AS) $(AFLAGS) $<
DRIVERS=\
apple2prog.lib \
c64prog.lib \
# c64nb65.lib \
DRIVERS=\
apple2prog.lib \
c64prog.lib \
# c64nb65.lib \
all: $(DRIVERS)
apple2prog.lib: a2print.o uthernet.o a2timer.o a2kernal.o a2input.o a2charconv.o
apple2prog.lib: a2print.o uthernet.o a2timer.o a2kernal.o a2input.o a2charconv.o cs8900a.o
ar65 a $@ $^
c64prog.lib: c64print.o rr-net.o c64timer.o c64kernal.o c64inputs.o c64_disk_access.o c64charconv.o c64_vt100.o
ar65 a $@ $^
#c64nb65.lib: c64print.o rr-net.o c64timer_nb65.o c64kernal.o c64inputs.o c64_disk_access.o c64charconv.o
# ar65 a $@ $^
c64prog.lib: c64print.o rr-net.o c64timer.o c64kernal.o c64inputs.o c64_disk_access.o c64charconv.o c64_vt100.o cs8900a.o
ar65 a $@ $^
c64wiznet.lib: c64print.o wiznet.o c64timer.o c64kernal.o c64inputs.o c64_disk_access.o c64charconv.o c64_vt100.o
ar65 a $@ $^
#c64nb65.lib: c64print.o rr-net.o c64timer_nb65.o c64kernal.o c64inputs.o c64_disk_access.o c64charconv.o
# ar65 a $@ $^
clean:
rm -f *.o

View File

@ -7,52 +7,62 @@ AFLAGS=
$(CC) -c $(CFLAGS) $<
%.o: %.s
$(AS) $(AFLAGS) $<
$(AS) $(AFLAGS) $<
ETHOBJS= \
copymem.o \
config.o \
timer.o \
cs8900a.o \
eth.o \
arp.o \
udp.o \
ip65.o \
printf.o \
debug.o \
http.o \
httpd.o \
dhcp.o \
dns.o \
dottedquad.o \
output_buffer.o\
tftp.o \
sntp.o \
parser.o \
string_utils.o \
telnet.o \
xmodem.o \
url.o \
arithmetic.o\
debug.o \
http.o \
httpd.o \
dhcp.o \
dns.o \
dottedquad.o \
output_buffer.o\
tftp.o \
sntp.o \
parser.o \
string_utils.o \
telnet.o \
xmodem.o \
url.o \
arithmetic.o\
all: ip65.lib ip65_tcp.lib
ip65.lib: $(ETHOBJS) function_dispatcher.s ip.s icmp.s
$(AS) $(AFLAGS) function_dispatcher.s
$(AS) $(AFLAGS) ip.s
ip65.lib: $(ETHOBJS) function_dispatcher.s ip.s icmp.s
$(AS) $(AFLAGS) function_dispatcher.s
$(AS) $(AFLAGS) ip.s
$(AS) $(AFLAGS) icmp.s
ar65 a ip65.lib $(ETHOBJS) function_dispatcher.o ip.o icmp.o
ip65_tcp.lib: tcp.o $(ETHOBJS) function_dispatcher.s ip.s tcp.s icmp.s
$(AS) $(AFLAGS) function_dispatcher.s -DTCP -DAPI_VERSION=2
$(AS) $(AFLAGS) ip.s -DTCP
$(AS) $(AFLAGS) icmp.s -DTCP
ip65_tcp.lib: tcp.o $(ETHOBJS) function_dispatcher.s ip.s tcp.s icmp.s
$(AS) $(AFLAGS) function_dispatcher.s -DTCP -DAPI_VERSION=2
$(AS) $(AFLAGS) ip.s -DTCP
$(AS) $(AFLAGS) icmp.s -DTCP
ar65 a ip65_tcp.lib $(ETHOBJS) function_dispatcher.o ip.o tcp.o icmp.o
clean:
rm -f *.o
rm -f ip65.lib
rm -f ip65_tcp.lib
rm -f ip65_tcp.lib
distclean: clean