vgi: update for disk image upload

This commit is contained in:
Vince Weaver 2021-06-27 23:21:09 -04:00
parent 013411ffd1
commit 4f395ea798
5 changed files with 91 additions and 36 deletions

View File

@ -85,6 +85,7 @@ setup_interrupt:
jsr SETGR
jsr HGR
jsr HOME
; bit FULLGR
jsr make_tables

View File

@ -2,6 +2,8 @@
10 PRINT CHR$(4);"CATALOG"
20 PRINT:PRINT "FOR THE BRIEF HI-RES MYST DEMO"
30 PRINT "TYPE: BRUN VGI-MYST"
40 PRINT:PRINT "NOTE: THERE IS ALSO A FULL-FEATURED"
50 PRINT "LORES VERSION AVAILABLE FOR DOWNLOAD"
70 PRINT "IF YOU WANT TO PLAY ON APPLE II"
40 PRINT:PRINT "FOR THE DOOM DEMO"
50 PRINT "TYPE: BRUN VGI-DOOM"
70 PRINT:PRINT "NOTE: THERE IS ALSO A FULL-FEATURED"
80 PRINT "LORES VERSION AVAILABLE FOR DOWNLOAD"
90 PRINT "IF YOU WANT TO PLAY ON APPLE II"

View File

@ -13,16 +13,16 @@ vgi_myst:
; get pointer to image data
lda #<path_data
sta VGIL
lda #>path_data
sta VGIH
; lda #<clock_data
; lda #<path_data
; sta VGIL
; lda #>clock_data
; lda #>path_data
; sta VGIH
lda #<clock_data
sta VGIL
lda #>clock_data
sta VGIH
jsr play_vgi
jsr wait_until_keypress

View File

@ -1,7 +1,8 @@
;===========================
; Check for Apple IIc
; Check Apple II model
;===========================
; this is mostly for IIc support
; as it does interrupts differently
; ' ' ($20) = Apple II
; '+' ($2B) = Apple II+
@ -9,29 +10,54 @@
; 'C' ($43) = Apple IIc
; 'G' ($47) = Apple IIgs
; it does interrupts differently
detect_appleii_model:
lda #' '
sta APPLEII_MODEL
lda $FBB3 ; IIe and newer is $06
cmp #6
beq apple_iie_or_newer
ldx $FBB3
; II is $38
; J-plus is $C9
; II+ is $EA (so is III)
; IIe and newer is $06
; TODO: check for II+
cpx #$38
beq done_apple_detect
jmp done_apple_detect
lda #'+'
cpx #$EA
beq done_apple_detect
; TODO: check for J-plus or III?
cpx #$06
bne done_apple_detect
apple_iie_or_newer:
; TODO: check for IIe
lda $FBC0 ; 0 on a IIc
ldx $FBC0 ; $EA on a IIe
; $E0 on a IIe enhanced
; $00 on a IIc/IIc+
; $FE1F = $60, IIgs
beq apple_iic
lda #'E'
cpx #$EA
beq done_apple_detect
cpx #$E0
beq done_apple_detect
; assume GS?
lda #'G'
bne done_apple_detect
apple_iic:
lda #'C'
sta APPLEII_MODEL
done_apple_detect:
sta APPLEII_MODEL
rts

View File

@ -1,7 +1,8 @@
;===========================
; Check for Apple IIc
; Check Apple II model
;===========================
; this is mostly for IIc support
; as it does interrupts differently
; ' ' ($20) = Apple II
; '+' ($2B) = Apple II+
@ -9,29 +10,54 @@
; 'C' ($43) = Apple IIc
; 'G' ($47) = Apple IIgs
; it does interrupts differently
detect_appleii_model:
lda #' '
sta APPLEII_MODEL
lda $FBB3 ; IIe and newer is $06
cmp #6
beq apple_iie_or_newer
ldx $FBB3
; II is $38
; J-plus is $C9
; II+ is $EA (so is III)
; IIe and newer is $06
; TODO: check for II+
cpx #$38
beq done_apple_detect
jmp done_apple_detect
lda #'+'
cpx #$EA
beq done_apple_detect
; TODO: check for J-plus or III?
cpx #$06
bne done_apple_detect
apple_iie_or_newer:
; TODO: check for IIe
lda $FBC0 ; 0 on a IIc
ldx $FBC0 ; $EA on a IIe
; $E0 on a IIe enhanced
; $00 on a IIc/IIc+
; $FE1F = $60, IIgs
beq apple_iic
lda #'E'
cpx #$EA
beq done_apple_detect
cpx #$E0
beq done_apple_detect
; assume GS?
lda #'G'
bne done_apple_detect
apple_iic:
lda #'C'
sta APPLEII_MODEL
done_apple_detect:
sta APPLEII_MODEL
rts