brand new demo for Apple-Oids (#454)

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload
This commit is contained in:
frankmilliron 2022-02-15 09:27:56 -08:00 committed by GitHub
parent 95fc22c807
commit 861ed9e676
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 65 additions and 0 deletions

BIN
res/DEMO/AO Normal file

Binary file not shown.

View File

@ -6,6 +6,7 @@ ALIEN.AMBUSH=Type(06),AuxType(4000),Access(C3)
ALIEN.DOWNPOUR=Type(06),AuxType(0300),Access(C3) ALIEN.DOWNPOUR=Type(06),AuxType(0300),Access(C3)
ALIEN.MUNCHIES=Type(06),AuxType(0200),Access(C3) ALIEN.MUNCHIES=Type(06),AuxType(0200),Access(C3)
ALIEN.TYPHOON=Type(06),AuxType(0300),Access(C3) ALIEN.TYPHOON=Type(06),AuxType(0300),Access(C3)
AO=Type(06),AuxType(B900),Access(C3)
APPLE.INVADER=Type(06),AuxType(0200),Access(C3) APPLE.INVADER=Type(06),AuxType(0200),Access(C3)
AQUATRON=Type(06),AuxType(BD00),Access(C3) AQUATRON=Type(06),AuxType(BD00),Access(C3)
AXIS.ASSASSIN=Type(06),AuxType(0300),Access(C3) AXIS.ASSASSIN=Type(06),AuxType(0300),Access(C3)

64
src/demo/apple.oids.a Normal file
View File

@ -0,0 +1,64 @@
;license:MIT
;(c) 2021 by Frank M.
!cpu 6502
!to "res/DEMO/AO",plain
*=$B900
!source "src/constants.a" ; no code in these
!source "src/macros.a"
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
+LOAD_FILE_AT title, $00
lda #$60
sta $604E
jsr $6000 ; decompress
lda #$4C
sta $4FD7 ; exit on keypress
sta $4F96 ; exit at end of demo
lda #0
sta $4FD7+1
lda #1
sta $4FD7+2
; doesn't try to detect joystick or joystick buttons
lda #$D0 ; disable sounds
sta $0DA0 ; A-P-P-L-E-O-I-D-S
sta $1118 ; alien
sta $111F ; alien
lda #<callback
sta $4F96+1
lda #>callback
sta $4F96+2 ; wait 10 seconds at end of demo once Twilight logo is shown
+DISABLE_ACCEL
jmp $4D00
callback lda $C000
bmi +
lda #$FF
jsr $FCA8 ; WAIT 0.16395694 seconds
dec count
beq +
jmp callback
+ jmp $100
count !byte $3D ; number of 0.16395694 second WAIT cycles
; (A*A*2.5 + A*13.5 + 7) * 0.980 usec
; 163,840 + 3,456 + 7 = 167,303 * 0.980 usec = 163,956.94 usec
; 163,956.94 usec = 0.16395694 seconds
; 61 cycles (hex $3D) of A=256 WAIT = 10 seconds
title !byte x_e-x_b
x_b !text "X/AO/AO"
x_e
!if * > $BDFF {
!error "code is too large, ends at ", *
}