eshu Posted January 8, 2010 Share Posted January 8, 2010 Hi, I would like to work with one .asm file for both PAL60 & NTSC versions - I was hoping someone who understands DASM macros might be able to suggest how to go about this. I would like to be able to do something like: DEF NTSC ;DEF PAL IFDEF NTSC Var1 = $1 Var2 = $2 ENDIF IFDEF PAL Var1 = $99 Var2 = $9A ENDIF I hope this makes sense, and any help would be greatly appreciated... Quote Link to comment Share on other sites More sharing options...
eshu Posted January 8, 2010 Author Share Posted January 8, 2010 Hi, I would like to work with one .asm file for both PAL60 & NTSC versions - I was hoping someone who understands DASM macros might be able to suggest how to go about this. I would like to be able to do something like: DEF NTSC ;DEF PAL IFDEF NTSC Var1 = $1 Var2 = $2 ENDIF IFDEF PAL Var1 = $99 Var2 = $9A ENDIF I hope this makes sense, and any help would be greatly appreciated... Found some documentation at: http://www.macs.hw.ac.uk/~pjbk/scholar/dasm.html I think I can do: SMODE EQU 0; 0-NTSC, 1-PAL60 ... IF SMODE=0 ...NTSC Code... ELSE ...PAL60 Code... ENDIF Quote Link to comment Share on other sites More sharing options...
+SpiceWare Posted January 11, 2010 Share Posted January 11, 2010 The following is what I did in Medieval Mayhem, you can get the source in blog if you're interested (scroll down to the entry titled Take 4 for the current source) NTSC = 0 PAL = 1 COMPILE_VERSION = NTSC ... IF COMPILE_VERSION = NTSC ShieldColor1 = $62 ; Purple ShieldColor2 = $c8 ; Green ShieldColor3 = $44 ; Red ShieldColor4 = $86 ; Blue WallColor0 = $22 WallColor1 = $24 WallColor2 = $26 WallColor3 = $28 WallColor4 = $2a WallColor5 = $2c MenuColor = $B8 ; Teal ValueColor = $68 ; Purple SlctMenuColor = $FE ; Yellow SlctBackground = $04 ; Grey WingColor = $1c ; Gold BodyColor = $42 ; Red OVERSCAN_DELAY = $1b FIREBALL_DELAY = 70 ; 75 second delay for launch of extra fireball ; (delay * 60) / 64 ATTRACT_DELAY = 19 ; 20 second delay for going into Attract Mode ELSE ShieldColor1 = $a2 ; Purple ShieldColor2 = $58 ; Green ShieldColor3 = $64 ; Red ShieldColor4 = $d6 ; Blue WallColor0 = $42 WallColor1 = $44 WallColor2 = $46 WallColor3 = $48 WallColor4 = $4a WallColor5 = $4c MenuColor = $78 ; Teal ValueColor = $C8 ; Purple SlctMenuColor = $2E ; Yellow SlctBackground = $04 ; Grey WingColor = $2C ; Gold BodyColor = $62 ; Red OVERSCAN_DELAY = $57 FIREBALL_DELAY = 59 ; 75 second delay for launch of extra fireball ; (delay * 50) / 64 ATTRACT_DELAY = 16 ; 20 second delay for going into Attract Mode ENDIF Quote Link to comment Share on other sites More sharing options...
eshu Posted January 12, 2010 Author Share Posted January 12, 2010 The following is what I did in Medieval Mayhem, you can get the source in blog if you're interested (scroll down to the entry titled Take 4 for the current source) NTSC = 0 PAL = 1 COMPILE_VERSION = NTSC ... IF COMPILE_VERSION = NTSC ShieldColor1 = $62 ; Purple ShieldColor2 = $c8 ; Green ShieldColor3 = $44 ; Red ShieldColor4 = $86 ; Blue WallColor0 = $22 WallColor1 = $24 WallColor2 = $26 WallColor3 = $28 WallColor4 = $2a WallColor5 = $2c MenuColor = $B8 ; Teal ValueColor = $68 ; Purple SlctMenuColor = $FE ; Yellow SlctBackground = $04 ; Grey WingColor = $1c ; Gold BodyColor = $42 ; Red OVERSCAN_DELAY = $1b FIREBALL_DELAY = 70 ; 75 second delay for launch of extra fireball ; (delay * 60) / 64 ATTRACT_DELAY = 19 ; 20 second delay for going into Attract Mode ELSE ShieldColor1 = $a2 ; Purple ShieldColor2 = $58 ; Green ShieldColor3 = $64 ; Red ShieldColor4 = $d6 ; Blue WallColor0 = $42 WallColor1 = $44 WallColor2 = $46 WallColor3 = $48 WallColor4 = $4a WallColor5 = $4c MenuColor = $78 ; Teal ValueColor = $C8 ; Purple SlctMenuColor = $2E ; Yellow SlctBackground = $04 ; Grey WingColor = $2C ; Gold BodyColor = $62 ; Red OVERSCAN_DELAY = $57 FIREBALL_DELAY = 59 ; 75 second delay for launch of extra fireball ; (delay * 50) / 64 ATTRACT_DELAY = 16 ; 20 second delay for going into Attract Mode ENDIF Lovely, cheers for the help....I got it working in the end, the formatting had me confused for a bit..... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.