Removed initialization code to set the screen size and replaced it by a

separate module that contains a module constructor. In some cases, the
code was even unnecessary, since the screen size is known in advance.


git-svn-id: svn://svn.cc65.org/cc65/trunk@476 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2000-11-23 19:05:32 +00:00
parent ea8541e932
commit 99ecc9a609
25 changed files with 241 additions and 141 deletions

View File

@@ -11,14 +11,25 @@
%.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $<
C_OBJS =
OBJS = _scrsize.o \
banking.o \
break.o \
cgetc.o \
clrscr.o \
color.o \
cputc.o \
crt0.o \
crtc.o \
kbhit.o \
kirq.o \
kplot.o \
kscnkey.o \
kudtim.o \
pokesys.o \
rs232.o
S_OBJS = crt0.o kbhit.o conio.o clrscr.o cputc.o cgetc.o\
color.o break.o banking.o crtc.o pokesys.o\
kscnkey.o kplot.o kudtim.o kirq.o rs232.o
all: $(C_OBJS) $(S_OBJS)
all: $(OBJS)
clean:
@rm -f $(C_OBJS:.c=.s) $(C_OBJS) $(S_OBJS) crt0.o
@rm -f $(OBJS)

15
libsrc/cbm610/_scrsize.s Normal file
View File

@@ -0,0 +1,15 @@
;
; Ullrich von Bassewitz, 26.10.2000
;
; Screen size variables
;
.export xsize, ysize
.rodata
xsize: .byte 80
ysize: .byte 25

View File

@@ -1,19 +0,0 @@
;
; Ullrich von Bassewitz, 22.09.1998
;
; Low level stuff for screen output/console input
;
.export initconio
.import xsize, ysize
.include "cbm610.inc"
initconio:
lda #80
sta xsize
lda #25
sta ysize
rts

View File

@@ -7,7 +7,6 @@
.export _exit
.import initlib, donelib
.import push0, _main
.import initconio
.import __BSS_RUN__, __BSS_SIZE__
.import irq, nmi
.import k_irq, k_nmi, k_plot, k_udtim, k_scnkey
@@ -240,10 +239,6 @@ Z4:
jsr initlib
; Initialize conio stuff
jsr initconio
; Create the (empty) command line for the program
jsr push0 ; argc