demos should check their own hardware requirements now

This commit is contained in:
4am 2021-11-01 00:29:36 -04:00
parent 608c2382e5
commit 4f3cc745c7
13 changed files with 17 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -8,6 +8,7 @@
!source "src/constants.a" ; no code in these
!source "src/macros.a"
+GAME_REQUIRES_JOYSTICK
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
+LOAD_FILE_AT choplifter, $00

View File

@ -8,6 +8,7 @@
!source "src/constants.a" ; no code in these
!source "src/macros.a"
+GAME_REQUIRES_JOYSTICK
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
+LOAD_FILE_AT title, $00

View File

@ -8,6 +8,7 @@
!source "src/constants.a" ; no code in these
!source "src/macros.a"
+GAME_REQUIRES_JOYSTICK
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
+LOAD_FILE_AT title, $00

View File

@ -8,6 +8,7 @@
!source "src/constants.a" ; no code in these
!source "src/macros.a"
+GAME_REQUIRES_JOYSTICK
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
+LOAD_FILE_AT title, $00

View File

@ -8,6 +8,7 @@
!source "src/constants.a" ; no code in these
!source "src/macros.a"
+GAME_REQUIRES_JOYSTICK
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
+LOAD_FILE_AT title, $00

View File

@ -8,6 +8,7 @@
!source "src/constants.a" ; no code in these
!source "src/macros.a"
+GAME_REQUIRES_JOYSTICK
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
+LOAD_FILE_AT tubeway, $00

View File

@ -330,6 +330,7 @@
lda MachineStatus
+READ_ROM_NO_WRITE
}
!macro USES_TEXT_PAGE_2 {
lda ROM_MACHINEID
cmp #$06
@ -439,5 +440,15 @@
sta iCurBlockLo
}
; Macros for demo launchers that need to check whether they should run
; on the current machine. These will RTS if the requirements are not met.
!macro GAME_REQUIRES_JOYSTICK {
+GET_MACHINE_STATUS
and #HAS_JOYSTICK
bne +
rts
+
}
_MACROS_=*
}