Debian Codegraph @

machines/channel-f/macro.h

raw symbols SCIP
1 ; MACRO.H for Channel F
2 ; Version 1.01, 2/NOVEMBER/2004
3
4 VERSION_MACRO = 101
5
6 ;
7 ; THIS FILE IS EXPLICITLY SUPPORTED AS A DASM-PREFERRED COMPANION FILE
8 ; PLEASE DO *NOT* REDISTRIBUTE MODIFIED VERSIONS OF THIS FILE!
9 ;
10 ; This file defines DASM macros useful for development for the Channel F.
11 ; It is distributed as a companion machine-specific support package
12 ; for the DASM compiler. Updates to this file, DASM, and associated tools are
13 ; available at at http://www.atari2600.org/dasm
14 ;
15 ; Many thanks to the people who have contributed. If you take issue with the
16 ; contents, or would like to add something, please write to me
17 ; (atari2600@taswegian.com) with your contribution.
18 ;
19 ; Latest Revisions...
20 ;
21 ; 1.01 2/NOV/2004 Contribution from Kevin Lipe
22 ; 1.00 31/OCT/2004 - initial version
23
24
25
26 ;===================================================================
27 ; M A C R O S
28 ;===================================================================
29
30 ;-------------------------
31 ; CARTRIDGE_START
32 ; Original Author: Sean Riddle
33 ; Inserts the $55 that signals a valid Channel F cartridge and
34 ; then inserts the NOP that takes up the next byte, which places
35 ; the Channel F at the cartridge entry point, $802.
36
37 MAC CARTRIDGE_START
38 CartridgeStart: db $55 ; valid cart indicator
39 NOP ; unused byte
40 ENDM
41
42 ;-------------------------
43 ; PROMPTS_NO_T
44 ; Original Author: Sean Riddle
45 ; This code functions the same as the "prompts" section of the BIOS,
46 ; but this code doesn't have a "T?" prompt, so it's useful in games that
47 ; don't have time limits or settings.
48
49 MAC PROMPTS_NOT
50 prompts SUBROUTINE
51 LR K,P ;
52 PI pushk ;
53 .prompts2: LI $85 ; red 5 (S)
54 LR $0,A ;
55 PI prompt ;
56 LR A,$4 ;
57 CI $08 ; is it button 4, Start?
58 BF $4,.notbut4 ; no, check others
59 .notbut2:
60 PI popk ; yes, return
61 PK ;
62
63 .notbut4: CI $02 ; is it button 2, Mode?
64 BF $4,.notbut2 ;
65 LI $8e ; red M
66 LR $0,A ;
67 PI prompt ;
68 LISU 3 ;
69 LISL 6 ;
70 LR A,(IS) ;
71 as 4 ;add the mode to the game #
72 LR (IS),A ;
73 BF $0,.prompts2 ;
74 ENDM
75
76
77
78 ; EOF