C_OBJS =
-S_OBJS = break.o clrscr.o cclear.o cgetc.o chline.o color.o \
- cputc.o crt0.o ctype.o \
- cvline.o kbhit.o read.o revers.o where.o write.o
+S_OBJS= _scrsize.o \
+ break.o \
+ cclear.o \
+ cgetc.o \
+ chline.o \
+ clrscr.o \
+ color.o \
+ cputc.o \
+ crt0.o \
+ ctype.o \
+ cvline.o \
+ kbhit.o \
+ read.o \
+ revers.o \
+ where.o \
+ write.o
all: $(C_OBJS) $(S_OBJS)
clean:
@rm -f $(C_OBJS:.c=.s) $(C_OBJS) $(S_OBJS) crt0.o
+
--- /dev/null
+;
+; Ullrich von Bassewitz, 26.10.2000
+;
+; Screen size variables
+;
+
+ .export xsize, ysize
+
+.rodata
+
+xsize: .byte 40
+ysize: .byte 24
+
+
+
C_OBJS =
-S_OBJS = crt0.o kbhit.o conio.o clrscr.o cputc.o ctype.o chline.o cvline.o \
+S_OBJS = crt0.o _scrsize.o kbhit.o clrscr.o cputc.o ctype.o chline.o cvline.o \
color.o gotoxy.o cclear.o revers.o readjoy.o break.o where.o write.o \
gotox.o gotoy.o savevec.o rwcommon.o cgetc.o read.o getargs.o close.o \
open.o oserror.o fdtable.o setcolor.o scroll.o mul40.o graphuse.o \
--- /dev/null
+;
+; Ullrich von Bassewitz, 26.10.2000
+;
+; Screen size variables
+;
+
+ .export xsize, ysize
+
+.rodata
+
+xsize: .byte 40
+ysize: .byte 24
+
+
+
+++ /dev/null
-;
-; Christian Groessler
-;
-; Low level stuff for screen output/console input
-;
-
- .export initconio
- .import xsize, ysize, plot
-
- .include "atari.inc"
-
-.code
-
-initconio:
- ldx #40
- ldy #24
- stx xsize
- sty ysize
- rts
-
.export mouse_pm0
.endif
.export _exit
- .import getargs, argc, argv
+ .import getargs, argc, argv
.import initlib, donelib
- .import initconio, zerobss, pushax
+ .import zerobss, pushax
.import _main,__filetab,getfd
.import __CODE_LOAD__, __BSS_LOAD__
.import __graphmode_used
; Initialize conio stuff
- jsr initconio
-
lda #$FF
sta CH
%.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $<
-C_OBJS =
-
-S_OBJS = crt0.o conio.o kbhit.o clrscr.o cgetc.o readjoy.o\
- color.o cputc.o break.o
-
-all: $(C_OBJS) $(S_OBJS)
+OBJS = _scrsize.o \
+ break.o \
+ cgetc.o \
+ clrscr.o \
+ conio.o \
+ crt0.o \
+ color.o \
+ cputc.o \
+ kbhit.o \
+ readjoy.o
+
+all: $(OBJS)
clean:
- @rm -f $(C_OBJS:.c=.s) $(C_OBJS) $(S_OBJS) crt0.o
+ @rm -f $(OBJS)
--- /dev/null
+;
+; Ullrich von Bassewitz, 26.10.2000
+;
+; Screen size variables
+;
+
+ .export xsize, ysize
+ .constructor initscrsize
+
+ .include "../cbm/cbm.inc"
+
+.code
+
+initscrsize:
+ jsr SCREEN
+ inx
+ stx xsize
+ iny
+ sty ysize
+ rts
+
+.bss
+
+xsize: .res 1
+ysize: .res 1
+
+
+
+
.code
initconio:
- jsr SCREEN
- inx
- stx xsize
- iny
- sty ysize
; Save the old vector
%.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $<
-C_OBJS =
-
-S_OBJS = crt0.o read.o write.o kbhit.o conio.o clrscr.o mouse.o\
- cputc.o cgetc.o color.o readjoy.o break.o rs232.o
-
-all: $(C_OBJS) $(S_OBJS)
+OBJS = _scrsize.o \
+ break.o \
+ crt0.o \
+ cgetc.o \
+ clrscr.o \
+ color.o \
+ conio.o \
+ cputc.o \
+ kbhit.o \
+ mouse.o \
+ read.o \
+ readjoy.o \
+ rs232.o \
+ write.o
+
+all: $(OBJS)
clean:
- @rm -f $(C_OBJS:.c=.s) $(C_OBJS) $(S_OBJS) crt0.o
+ @rm -f $(OBJS)
--- /dev/null
+;
+; Ullrich von Bassewitz, 26.10.2000
+;
+; Screen size variables
+;
+
+ .export xsize, ysize
+ .constructor initscrsize
+
+ .include "../cbm/cbm.inc"
+
+.code
+
+initscrsize:
+ jsr SCREEN
+ stx xsize
+ sty ysize
+ rts
+
+.bss
+
+xsize: .res 1
+ysize: .res 1
+
+
; Low level stuff for screen output/console input
;
- .export initconio
.exportzp CURS_X, CURS_Y
- .import xsize, ysize
- .include "../cbm/cbm.inc"
.include "c64.inc"
-.code
-
-initconio:
- jsr SCREEN
- stx xsize
- sty ysize
- rts
-
-
-
.export _exit
.import initlib, donelib
- .import initconio, zerobss, push0
+ .import zerobss, push0
.import _main
.include "c64.inc"
jsr initlib
-; Initialize conio stuff
-
- jsr initconio
-
; Pass an empty command line
jsr push0 ; argc
%.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $<
-C_OBJS =
-
-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)
+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
+
+all: $(OBJS)
clean:
- @rm -f $(C_OBJS:.c=.s) $(C_OBJS) $(S_OBJS) crt0.o
+ @rm -f $(OBJS)
--- /dev/null
+;
+; Ullrich von Bassewitz, 26.10.2000
+;
+; Screen size variables
+;
+
+ .export xsize, ysize
+
+.rodata
+
+xsize: .byte 80
+ysize: .byte 25
+
+
+
+++ /dev/null
-;
-; 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
-
-
.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
jsr initlib
-; Initialize conio stuff
-
- jsr initconio
-
; Create the (empty) command line for the program
jsr push0 ; argc
%.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $<
-C_OBJS =
+OBJS = _cursor.o \
+ cputhex.o \
+ cputs.o \
+ cursor.o \
+ scrsize.o
-S_OBJS = _cursor.o \
- _scrsize.o \
- cputhex.o \
- cputs.o \
- cursor.o \
- scrsize.o
-
-all: $(C_OBJS) $(S_OBJS)
+all: $(OBJS)
clean:
- @rm -f *~ $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
+ @rm -f *~ $(OBJS)
+++ /dev/null
-;
-; Ullrich von Bassewitz, 26.10.2000
-;
-; Screen size variables
-;
-
- .export xsize, ysize
-
-.bss
-
-xsize: .res 1
-ysize: .res 1
-
-
-
%.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $<
-C_OBJS =
+OBJS = _scrsize.o \
+ break.o \
+ cgetc.o \
+ clrscr.o \
+ color.o \
+ conio.o \
+ cputc.o \
+ crt0.o \
+ kbhit.o
-S_OBJS = crt0.o kbhit.o conio.o clrscr.o cputc.o cgetc.o break.o color.o
-
-all: $(C_OBJS) $(S_OBJS)
+all: $(OBJS)
clean:
- @rm -f $(C_OBJS:.c=.s) $(C_OBJS) $(S_OBJS) crt0.o
+ @rm -f $(OBJS)
--- /dev/null
+;
+; Ullrich von Bassewitz, 26.10.2000
+;
+; Screen size variables
+;
+
+
+ .export xsize, ysize
+ .constructor initscrsize
+
+ .include "pet.inc"
+
+.code
+
+initscrsize:
+ ldx SCR_LINELEN
+ inx ; Variable is one less
+ stx xsize
+ lda #25
+ sta ysize
+ rts
+
+
+.bss
+
+xsize: .res 1
+ysize: .res 1
+
+
+
; Low level stuff for screen output/console input
;
- .export initconio
- .import xsize, ysize
.exportzp CURS_X, CURS_Y
.include "pet.inc"
-.code
-
-initconio:
- ldx SCR_LINELEN
- inx ; Variable is one less
- stx xsize
- lda #25
- sta ysize
- rts
-
-
-
; This must be the *first* file on the linker command line
;
- .export _exit
+ .export _exit
.import initlib, donelib
- .import initconio, zerobss, push0
+ .import zerobss, push0
.import _main
.include "pet.inc"
jsr initlib
-; Initialize conio stuff
-
- jsr initconio
-
; Pass an empty command line
jsr push0 ; argc
%.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $<
-C_OBJS =
-
-S_OBJS = crt0.o kbhit.o conio.o clrscr.o cputc.o cgetc.o\
- color.o readjoy.o break.o
-
-all: $(C_OBJS) $(S_OBJS)
+OBJS = _scrsize.o \
+ break.o \
+ cgetc.o \
+ clrscr.o \
+ color.o \
+ conio.o \
+ cputc.o \
+ crt0.o \
+ kbhit.o \
+ readjoy.o
+
+all: $(OBJS)
clean:
- @rm -f $(C_OBJS:.c=.s) $(C_OBJS) $(S_OBJS) crt0.o
+ @rm -f $(OBJS)
--- /dev/null
+;
+; Ullrich von Bassewitz, 26.10.2000
+;
+; Screen size variables
+;
+
+ .export xsize, ysize
+ .constructor initscrsize
+
+ .include "../cbm/cbm.inc"
+
+.code
+
+initscrsize:
+ jsr SCREEN
+ stx xsize
+ sty ysize
+ rts
+
+.bss
+
+xsize: .res 1
+ysize: .res 1
+
+
.code
initconio:
- jsr SCREEN
- stx xsize
- sty ysize
ldy #15
L1: lda fnkeys,y
sta FKEY_SPACE,y