home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
8bitfiles.net/archives
/
archives.tar
/
archives
/
genie-commodore-file-library
/
GEOSApps
/
COPEASSEMBLR.ARC
/
QV_MAIN
(
.txt
)
< prev
next >
Wrap
GEOS ConVerT
|
2019-04-13
|
4KB
|
226 lines
QV_MAIN
PRG formatted GEOS file V1.0
Okimate 10
LADS2COPE
BLASTER'S CONVERTER V2.5
QV_MAIN
QV_LOAD
COPE Source V1.1
COPE Editor V1.2
Untitled
@!@2@6@<@J@X@g@t@|@
; ===
; Source for QuickView
; BY BILL SHARP
START
JSR OpenDisk
lda curDrive
sta homeDrive
jsr VECTOR1
;------
JSR $C18A; mouseup
JSR Clr_Screen
loadw R0:ICONS
JSR $C15A; do ICONS
jsr DoScreen
; ICON ROUTINE
ICONS
.BYTE 3
.WORD 16
.BYTE 175
.WORD Icdt
.BYTE 34,184,6,15
.WORD QUIT2 ; CODE
.WORD Icdt
.BYTE 0,184,6,15
.WORD ScreenPrint; Execute the print to screen function.
.WORD Icdt
.BYTE 17,184,6,15
.WORD Pause
.BYTE 128+90
.Byte 255,255,255,255,255,254
.Byte 128,0,0,0,0,3
.Byte 128,0,0,0,0,3
.Byte 128,0,0,0,0,3
.Byte 128,0,0,0,0,3
.Byte 128,0,0,0,0,3
.Byte 128,0,0,0,0,3
.Byte 128,0,0,0,0,3
.Byte 128,0,0,0,0,3
.Byte 128,0,0,0,0,3
.Byte 128,0,0,0,0,3
.Byte 128,0,0,0,0,3
.Byte 128,0,0,0,0,3
.Byte 255,255,255,255,255,255
.Byte 127,255,255,255,255,255
;== END OF MENU TABLES
VECTOR1
lda #24
sta SOB
sta CBP
lda #25
sta EOB
LDX #$40
STX SOB+1
STX CBP+1
STX EOB+1
lda #13
sta (CBP),y
lda #$0C
sta (EOB),Y
loadw $84A9:OPV
QUIT2
lda homeDrive; return to home drive.
jsr ChangeDrive1
JMP EnterDeskTop
Clr_Screen
lda #0
jsr SetPattern
jsr i_Rectangle
.Byte 0,199
.Word 0,319
;=====
DoScreen
jsr i_PutString
.Word 07
.Byte 193
.Byte BOLD,'SELECT',0
jsr i_PutString
.Word 08+8*17
.Byte 193
.Byte BOLD,'PAUSE',0
jsr i_PutString
.Word 15+34*8
.Byte 193
.Byte BOLD,'EXIT',0
jsr i_PutString
.Word 50
.Byte 20
.Byte BOLD,'This is another Public Domain',0
jsr i_PutString
.Word 50
.Byte 35
.Byte 'program developed by the',0
jsr i_PutString
.Word 30
.Byte 55
.Byte BOLD,26,'TechUnit of Bill Sharp Computing',PLAIN,0
jsr i_PutString
.Word 50
.Byte 95
.Byte BOLD,'Source code disk is available in',0
jsr i_PutString
.Word 50
.Byte 110
.Byte 'geoCOPE format for only $5.00 from:',0
jsr i_PutString
.Word 50
.Byte 130
.Byte 'Bill Sharp Computing',0
jsr i_PutString
.Word 50
.Byte 140
.Byte 'P.O. Box 7533',0
jsr i_PutString
.Word 50
.Byte 150
.Byte 'Waco, TX 76714',PLAIN,0
;-----
,3,$81,$8D,$C1,$B3,$66
.Byte 3,$81,$8D,$81,$BScreenPrint
; This routine is the controlling routines for
; printing to the screen
; called from ICON being clicked 'on'.
;------
lda #0
jsr CvCrd
LDA #128
sta $2F; displayBuffer
JSR LOAD
lda CancelFlag
cmp #2
beq @exit
jsr CvCrd1
jsr OPV
lda PauseByte
bne @SPa
lda ExitByte
bne @exit
jsr GetByte ; returns next available byte/ EOF is zero
jsr ScreenByte ; print byte to screen/ EOF clears buffer.
bne @SPa ; ScreenByte Exits with $FF/contiune-0/stop
;----
; shut down operation
@exit
;=======
GetByte
ldy #0
Gibberish
lda (CBP),Y
beq GNext; was @0GB7
cmp #CARDSET
beq @0GB3
cmp #TAB
beq @0GB4
cmp #GRAPH
beq @0GB5
cmp #RULER
beq @0GB6
cmp #$0C
beq GNext
@0GB7
addy CBP
GNext
inc CurRecord
jsr SETUPM
lda NoRecord
bne @0GB2
BEQ GetByte
@0GB2
lda #0
@0GB3
iny
iny
iny
lda (CBP),Y
sty Y_Temp
JSR CvCrd; convert card bit to byte.
ldy Y_Temp
iny
branch Gibberish
Y_Temp .Byte 0
@0GB4
tya
clc
ADC #1
tay
branch Gibberish
@0GB5
tya
clc
ADC #5
tay
branch Gibberish
@0GB6
tya
clc
ADC #27
tay
branch Gibberish
;-----
ScreenByte
jsr SETUPA
beq SBex
cmp #32
bne @0001
ldx R11+1
beq @0001
lda #13
@0001
jsr PRTOUT
lda #$FF
lda #13
jsr PRTOUT
lda #0
;=====