Jump to content
IGNORED

PAL60 & NTSC in one .asm file?


eshu

Recommended Posts

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...

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.....

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...