--- /dev/null
+;
+; C16 generic definitions.
+;
+
+
+; ---------------------------------------------------------------------------
+; Zero page, Commodore stuff
+
+DEVNUM := $AE ; Device number
;-----------------------------------------------------------------------------
; Zeropage stuff
-ExecReg = $0000
-IndReg = $0001
+ExecReg = $00
+IndReg = $01
+DEVNUM = $9F
; ---------------------------------------------------------------------------
; Screen size
; ---------------------------------------------------------------------------
-; Zeropage registers
+; Zeropage stuff
ExecReg = $00
IndReg = $01
+DEVNUM = $9F
; ---------------------------------------------------------------------------
; Screen size
--- /dev/null
+;
+; PET generic definitions.
+;
+
+
+; ---------------------------------------------------------------------------
+; Zero page, Commodore stuff
+
+DEVNUM := $D4 ; Device number
crt0.o \
color.o \
cputc.o \
+ devnum.o \
fast.o \
get_tv.o \
joy_stddrv.o \
--- /dev/null
+;
+; Oliver Schmidt, 2010-02-14
+;
+
+ .include "c128.inc"
+
+ .exportzp devnum := DEVNUM
conio.o \
cputc.o \
crt0.o \
+ devnum.o \
get_tv.o \
joy_stddrv.o \
kbhit.o \
--- /dev/null
+;
+; Oliver Schmidt, 2010-02-14
+;
+
+ .include "c16.inc"
+
+ .exportzp devnum := DEVNUM
color.o \
conio.o \
cputc.o \
+ devnum.o \
get_ostype.o \
get_tv.o \
joy_stddrv.o \
--- /dev/null
+;
+; Oliver Schmidt, 2010-02-14
+;
+
+ .include "c64.inc"
+
+ .exportzp devnum := DEVNUM
; Variables used for CBM file I/O
;
- .export __curunit
.export __filetype
+ .export __curunit
+ .constructor initcurunit, 30
+ .importzp devnum
.data
-__curunit:
- .byte 8 ; Default is disk
-
__filetype:
.byte 'u' ; Create user files by default
+
+.bss
+
+__curunit:
+ .res 1
+
+
+.segment "INIT"
+
+.proc initcurunit
+
+ lda devnum
+ bne @L0
+ lda #8 ; Default is disk
+ sta devnum
+@L0: sta __curunit
+ rts
+
+.endproc
color.o \
cputc.o \
crt0.o \
+ devnum.o \
extzp.o \
kbhit.o \
kclose.o \
--- /dev/null
+;
+; Oliver Schmidt, 2010-02-14
+;
+
+ .include "cbm510.inc"
+
+ .exportzp devnum := DEVNUM
cputc.o \
crt0.o \
crtc.o \
+ devnum.o \
extzp.o \
get_tv.o \
kbhit.o \
--- /dev/null
+;
+; Oliver Schmidt, 2010-02-14
+;
+
+ .include "cbm610.inc"
+
+ .exportzp devnum := DEVNUM
conio.o \
cputc.o \
crt0.o \
+ devnum.o \
get_tv.o \
kbhit.o \
kbsout.o \
--- /dev/null
+;
+; Oliver Schmidt, 2010-02-14
+;
+
+ .include "pet.inc"
+
+ .exportzp devnum := DEVNUM
conio.o \
cputc.o \
crt0.o \
+ devnum.o \
get_tv.o \
joy_stddrv.o \
kacptr.o \
--- /dev/null
+;
+; Oliver Schmidt, 2010-02-14
+;
+
+ .include "plus4.inc"
+
+ .exportzp devnum := DEVNUM
color.o \
conio.o \
cputc.o \
+ devnum.o \
get_tv.o \
joy_stddrv.o \
kbhit.o \
--- /dev/null
+;
+; Oliver Schmidt, 2010-02-14
+;
+
+ .include "vic20.inc"
+
+ .exportzp devnum := DEVNUM