mirror of
https://github.com/a2-4am/4cade.git
synced 2024-10-14 22:25:59 +00:00
demos should check their own hardware requirements now
This commit is contained in:
parent
608c2382e5
commit
4f3cc745c7
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
res/DEMO/TB
BIN
res/DEMO/TB
Binary file not shown.
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
11
src/macros.a
11
src/macros.a
@ -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_=*
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user