mouse.o \
randomize.o \
readjoy.o \
+ revers.o \
rs232.o \
tgi_mode_table.o
FNAM_HI = $BC
FNAM_BANK = $C7 ; Bank for filename
KEY_COUNT = $D0 ; Number of keys in input buffer
+FKEY_COUNT = $D1 ; Characters for function key
MODE = $D7 ; 40/80 column mode flag
CURS_X = $EC ; Cursor column
CURS_Y = $EB ; Cursor row
CRAM_PTR = $E2 ; Pointer to current char in color RAM
CHARCOLOR = $F1
-FKEY_COUNT = $D1 ; Characters for function key
+RVS = $F3 ; Reverse output flag
FETCH = $2A2 ; Fetch subroutine in RAM
FETVEC = $2AA ; Vector patch location for FETCH
STASH = $2AF ; Stash routine in RAM
CURS_OFF = $CD9F
CLRSCR = $C142
KBDREAD = $C006
+PRINT = $C00C
; Extended jump table
SETBNK = $FF68
_textcolor:
- ldx CHARCOLOR ; get old value
+ bit MODE ; Check 80/40 column mode
+ bpl @L1 ; Jump if 40 columns
+ tax
+ lda $CE5C,x ; Translate VIC color -> VDC color
+@L1: ldx CHARCOLOR ; get old value
sta CHARCOLOR ; set new value
txa
rts
.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
.import popa, _gotoxy
- .import xsize, revers
+ .import xsize
.import PLOT
.include "c128.inc"
; position in Y
putchar:
- ora revers ; Set revers bit
+ ora RVS ; Set revers bit
ldy CURS_X
sta (SCREEN_PTR),y ; Set char
lda CHARCOLOR
--- /dev/null
+;
+; Ullrich von Bassewitz, 07.08.1998
+;
+; unsigned char revers (unsigned char onoff);
+;
+
+ .export _revers
+
+ .include "c128.inc"
+
+.proc _revers
+
+ ldx #$00 ; Assume revers off
+ tay ; Test onoff
+ beq L1 ; Jump if off
+ ldx #$80 ; Load on value
+ ldy #$00 ; Assume old value is zero
+L1: lda RVS ; Load old value
+ stx RVS ; Set new value
+ beq L2 ; Jump if old value zero
+ iny ; Make old value = 1
+L2: ldx #$00 ; Load high byte of result
+ tya ; Load low byte, set CC
+ rts
+
+.endproc
+
kbhit.o \
kernal.o \
randomize.o \
- readjoy.o
+ readjoy.o \
+ revers.o
all: $(OBJS)
.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
.import popa, _gotoxy
- .import xsize, revers
+ .import xsize
.import PLOT
.include "../plus4/plus4.inc"
; position in Y
putchar:
- ora revers ; Set revers bit
+ ora RVS ; Set revers bit
ldy CURS_X
sta (SCREEN_PTR),y ; Set char
lda CHARCOLOR
--- /dev/null
+;
+; Ullrich von Bassewitz, 07.08.1998
+;
+; unsigned char revers (unsigned char onoff);
+;
+
+ .export _revers
+
+ .include "../plus4/plus4.inc"
+
+.proc _revers
+
+ ldx #$00 ; Assume revers off
+ tay ; Test onoff
+ beq L1 ; Jump if off
+ ldx #$80 ; Load on value
+ ldy #$00 ; Assume old value is zero
+L1: lda RVS ; Load old value
+ stx RVS ; Set new value
+ beq L2 ; Jump if old value zero
+ iny ; Make old value = 1
+L2: ldx #$00 ; Load high byte of result
+ tya ; Load low byte, set CC
+ rts
+
+.endproc
+
mouse.o \
randomize.o \
readjoy.o \
+ revers.o \
rs232.o \
tgi_mode_table.o
SECADR = $B9 ; Secondary address
DEVNUM = $BA ; Device number
KEY_COUNT = $C6 ; Number of keys in input buffer
+RVS = $C7 ; Reverse flag
CURS_FLAG = $CC ; 1 = cursor off
CURS_BLINK = $CD ; Blink counter
CURS_CHAR = $CE ; Character under the cursor
-CURS_COLOR = $287 ; Color under the cursor
CURS_STATE = $CF ; Cursor blink state
SCREEN_PTR = $D1 ; Pointer to current char in text screen
CURS_X = $D3 ; Cursor column
CRAM_PTR = $F3 ; Pointer to current char in color RAM
CHARCOLOR = $286
+CURS_COLOR = $287 ; Color under the cursor
PALFLAG = $2A6 ; $01 = PAL, $00 = NTSC
.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
.import popa, _gotoxy
- .import xsize, revers
+ .import xsize
.import PLOT
.include "c64.inc"
; position in Y
putchar:
- ora revers ; Set revers bit
+ ora RVS ; Set revers bit
ldy CURS_X
sta (SCREEN_PTR),y ; Set char
lda CHARCOLOR
--- /dev/null
+;
+; Ullrich von Bassewitz, 07.08.1998
+;
+; unsigned char revers (unsigned char onoff);
+;
+
+ .export _revers
+
+ .include "c64.inc"
+
+.proc _revers
+
+ ldx #$00 ; Assume revers off
+ tay ; Test onoff
+ beq L1 ; Jump if off
+ ldx #$80 ; Load on value
+ ldy #$00 ; Assume old value is zero
+L1: lda RVS ; Load old value
+ stx RVS ; Set new value
+ beq L2 ; Jump if old value zero
+ iny ; Make old value = 1
+L2: ldx #$00 ; Load high byte of result
+ tya ; Load low byte, set CC
+ rts
+
+.endproc
+
oserrlist.o \
oserror.o \
read.o \
- revers.o \
rwcommon.o \
scratch.o \
sysremove.o \
+++ /dev/null
-;
-; Ullrich von Bassewitz, 07.08.1998
-;
-; unsigned char revers (unsigned char onoff);
-;
-
- .export _revers
- .export revers
-
-_revers:
- ldx #$00 ; Assume revers off
- tay ; Test onoff
- beq L1 ; Jump if off
- ldx #$80 ; Load on value
-L1: ldy #$00 ; Assume old value is zero
- lda revers ; Load old value
- stx revers ; Set new value
- beq L2 ; Jump if old value zero
- iny ; Make old value = 1
-L2: ldx #$00 ; Load high byte of result
- tya ; Load low byte, set CC
- rts
-
-.bss
-
-revers: .res 1
pokesys.o \
randomize.o \
readjoy.o \
+ revers.o \
rs232.o \
tgi_mode_table.o
rs232tail = $037D
PgmKeyEnd = $0380
PgmKeySeg = $0382
-PgmKeySize = $0383
-rvsFlag = $0397
+RVS = $0383
linetmp = $0398
LastPrtChar = $0399
InsertFlag = $039A
TabStopTable = $03A1 ; 80 bits for tabstops
KeyBuf = $03AB ; Keyboard buffer
funvec = $03B5 ; Vector for function key handline
-FunKeyTmp = $03B7
sedt3 = $03B9
MoniSegSave = $03f0
wstvec = $03F8
.import PLOT
.import popa, _gotoxy
- .import xsize, revers
+ .import xsize
.include "cbm510.inc"
; position in Y
putchar:
- ora revers ; Set revers bit
+ ora RVS ; Set revers bit
ldy CURS_X
sta (SCREEN_PTR),y ; Set char
ldx IndReg
--- /dev/null
+;
+; Ullrich von Bassewitz, 07.08.1998
+;
+; unsigned char revers (unsigned char onoff);
+;
+
+ .export _revers
+
+ .include "cbm510.inc"
+
+.proc _revers
+
+ ldx #$00 ; Assume revers off
+ tay ; Test onoff
+ beq L1 ; Jump if off
+ ldx #$80 ; Load on value
+ ldy #$00 ; Assume old value is zero
+L1: lda RVS ; Load old value
+ stx RVS ; Set new value
+ beq L2 ; Jump if old value zero
+ iny ; Make old value = 1
+L2: ldx #$00 ; Load high byte of result
+ tya ; Load low byte, set CC
+ rts
+
+.endproc
+
peeksys.o \
pokesys.o \
randomize.o \
+ revers.o \
rs232.o
#--------------------------------------------------------------------------
PgmKeyEnd = $0380
PgmKeySeg = $0382
PgmKeySize = $0383
-rvsFlag = $0397
+RVS = $0397
linetmp = $0398
LastPrtChar = $0399
InsertFlag = $039A
.import PLOT
.import _gotoxy
.import popa
- .import xsize, revers
+ .import xsize
.include "cbm610.inc"
ldx IndReg
ldy #$0F
sty IndReg
- ora revers ; Set revers bit
+ ora RVS ; Set revers bit
ldy CURS_X
sta (CharPtr),y ; Set char
stx IndReg
--- /dev/null
+;
+; Ullrich von Bassewitz, 07.08.1998
+;
+; unsigned char revers (unsigned char onoff);
+;
+
+ .export _revers
+
+ .include "cbm610.inc"
+
+.proc _revers
+
+ ldx #$00 ; Assume revers off
+ tay ; Test onoff
+ beq L1 ; Jump if off
+ ldx #$80 ; Load on value
+ ldy #$00 ; Assume old value is zero
+L1: lda RVS ; Load old value
+ stx RVS ; Set new value
+ beq L2 ; Jump if old value zero
+ iny ; Make old value = 1
+L2: ldx #$00 ; Load high byte of result
+ tya ; Load low byte, set CC
+ rts
+
+.endproc
+
kreadst.o \
ksetlfs.o \
ksetnam.o \
- randomize.o
+ randomize.o \
+ revers.o
all: $(OBJS)
.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
.import popa, _gotoxy
- .import xsize, revers
+ .import xsize
.include "pet.inc"
- .include "../cbm/cbm.inc"
+; .include "../cbm/cbm.inc"
_cputcxy:
pha ; Save C
; position in Y
putchar:
- ora revers ; Set revers bit
+ ora RVS ; Set revers bit
ldy CURS_X
sta (SCREEN_PTR),y ; Set char
rts
TIME = $8D ; 60HZ clock
ST = $96 ; IEC status byte
KEY_COUNT = $9E ; Number of keys in input buffer
+RVS = $9F ; Reverse flag
CURS_FLAG = $A7 ; 1 = cursor off
CURS_BLINK = $A8 ; Blink counter
CURS_CHAR = $A9 ; Character under the cursor
;----------------------------------------------------------------------------
; PET ROM type detection
-PET_DETECT = $FFFB
+PET_DETECT = $FFFB
PET_2000 = $CA
PET_3000 = $FC
PET_4000 = $FD
--- /dev/null
+;
+; Ullrich von Bassewitz, 07.08.1998
+;
+; unsigned char revers (unsigned char onoff);
+;
+
+ .export _revers
+
+ .include "pet.inc"
+
+.proc _revers
+
+ ldx #$00 ; Assume revers off
+ tay ; Test onoff
+ beq L1 ; Jump if off
+ ldx #$80 ; Load on value
+ ldy #$00 ; Assume old value is zero
+L1: lda RVS ; Load old value
+ stx RVS ; Set new value
+ beq L2 ; Jump if old value zero
+ iny ; Make old value = 1
+L2: ldx #$00 ; Load high byte of result
+ tya ; Load low byte, set CC
+ rts
+
+.endproc
+
kuntlk.o \
randomize.o \
readjoy.o \
+ revers.o \
tgi_mode_table.o
all: $(OBJS)
.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
.import popa, _gotoxy
- .import xsize, revers
+ .import xsize
.import PLOT
.include "plus4.inc"
plot: ldy CURS_X
ldx CURS_Y
- clc
+ clc
jmp PLOT ; Set the new cursor
; position in Y
putchar:
- ora revers ; Set revers bit
+ ora RVS ; Set revers bit
ldy CURS_X
sta (SCREEN_PTR),y ; Set char
lda CHARCOLOR
DEVNUM = $AE ; Device number
FNAM_ADR = $AF ; Pointer to filename for OPEN
KEY_COUNT = $EF ; Number of keys in input buffer
+RVS = $C2 ; Reverse flag
CURS_X = $CA ; Cursor column
CURS_Y = $CD ; Cursor row
SCREEN_PTR = $C8 ; Pointer to current char in text screen
--- /dev/null
+;
+; Ullrich von Bassewitz, 07.08.1998
+;
+; unsigned char revers (unsigned char onoff);
+;
+
+ .export _revers
+
+ .include "plus4.inc"
+
+.proc _revers
+
+ ldx #$00 ; Assume revers off
+ tay ; Test onoff
+ beq L1 ; Jump if off
+ ldx #$80 ; Load on value
+ ldy #$00 ; Assume old value is zero
+L1: lda RVS ; Load old value
+ stx RVS ; Set new value
+ beq L2 ; Jump if old value zero
+ iny ; Make old value = 1
+L2: ldx #$00 ; Load high byte of result
+ tya ; Load low byte, set CC
+ rts
+
+.endproc
+
kernal.o \
kplot.o \
randomize.o \
- readjoy.o
+ readjoy.o \
+ revers.o
all: $(OBJS)
.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
.import popa, _gotoxy
- .import xsize, revers
+ .import xsize
.import PLOT
.include "vic20.inc"
; position in Y
putchar:
- ora revers ; Set revers bit
+ ora RVS ; Set revers bit
ldy CURS_X
sta (SCREEN_PTR),y ; Set char
lda CHARCOLOR
--- /dev/null
+;
+; Ullrich von Bassewitz, 07.08.1998
+;
+; unsigned char revers (unsigned char onoff);
+;
+
+ .export _revers
+
+ .include "vic20.inc"
+
+.proc _revers
+
+ ldx #$00 ; Assume revers off
+ tay ; Test onoff
+ beq L1 ; Jump if off
+ ldx #$80 ; Load on value
+ ldy #$00 ; Assume old value is zero
+L1: lda RVS ; Load old value
+ stx RVS ; Set new value
+ beq L2 ; Jump if old value zero
+ iny ; Make old value = 1
+L2: ldx #$00 ; Load high byte of result
+ tya ; Load low byte, set CC
+ rts
+
+.endproc
+
SECADR = $B9 ; Secondary address
DEVNUM = $BA ; Device number
KEY_COUNT = $C6 ; Number of keys in input buffer
+RVS = $C7 ; Reverse flag
CURS_FLAG = $CC ; 1 = cursor off
CURS_BLINK = $CD ; Blink counter
CURS_CHAR = $CE ; Character under the cursor
-CURS_COLOR = $287 ; Color under the cursor
CURS_STATE = $CF ; Cursor blink state
SCREEN_PTR = $D1 ; Pointer to current char in text screen
CURS_X = $D3 ; Cursor column
CRAM_PTR = $F3 ; Pointer to current char in color RAM
CHARCOLOR = $286
+CURS_COLOR = $287 ; Color under the cursor
PALFLAG = $2A6 ; $01 = PAL, $00 = NTSC