Wolfenstein MSU-1 (finished)

Go down

Wolfenstein MSU-1 (finished)

Post by Conn on Wed 13 Jun 2018 - 13:32

Project finished:
https://www.zeldix.net/t1727-wolfenstein-3d

Here's the asm for Wolfenstein.

-> snes9x has music distortion, use bsnes!

use breakpoint $2004, write to map the tracks
02: first level
07: another level
eb: intro
00: intro
cd: briefing
f0: credit screen
note: when returning from demo, it also plays the intro but with another id,
etc....


Code:

hirom

; hardcore mute
org $ce9921 ; mute spc
db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00


; hook section
org $C061EB
JML msuTrack
NOP

org $c019ea
JSL pauseStart

org $C0DA24
JSL dying

org $C031F9
JSL pauseEnd

; code section
org $Cfff30 ; free space

pauseStart:
LDA #$0000
STA $002007
JSL $C02E89 ; native code
RTL

pauseEnd:
LDA #$0003
STA $002007
JSL $C01439
RTL

dying:
LDA #$0000
STA $002007
JSL $C06190
RTL

msuTrack:
PHP
SEP #$20
STA $002004
LDA #$00
STA $002005
STA $002006
loop:
lda $002000
AND #$40
BNE loop
LDA #$ff
STA $002006
LDA #$03     ; all tracks loop?
STA $002007
PLP
TSC ; native code
SEC
SBC #$000C
JML $C061F0
Attachments
w3d_msu.zip You don't have permission to download attachments.(1 Kb) Downloaded 0 times


Last edited by Conn on Sat 16 Jun 2018 - 17:00; edited 2 times in total
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Wolfenstein MSU-1 (finished)

Post by Polargames on Fri 15 Jun 2018 - 22:59

Conn wrote:Here's the asm for Wolfenstein.

-> snes9x has music distortion, use bsnes!

use breakpoint $2004, write to map the tracks
02: first level
07: another level
eb: intro
00: intro
cd: briefing
f0: credit screen
note: when returning from demo, it also plays the intro but with another id,
etc....


Code:

hirom

; hardcore mute
org $ce9921 ; mute spc
db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00


; hook section
org $C061EB
JML msuTrack
NOP

org $c019ea
JSL pauseStart

org $C0DA24
JSL dying

org $C031F9
JSL pauseEnd

; code section
org $Cfff30 ; free space

pauseStart:
LDA #$0000
STA $002007
JSL $C02E89 ; native code
RTL

pauseEnd:
LDA #$0003
STA $002007
JSL $C01439
RTL

dying:
LDA #$0000
STA $002007
JSL $C06190
RTL

msuTrack:
PHP
SEP #$20
STA $002004
LDA #$00
STA $002005
STA $002006
loop:
lda $002000
AND #$40
BNE loop
LDA #$ff
STA $002006
LDA #$03     ; all tracks loop?
STA $002007
PLP
TSC ; native code
SEC
SBC #$000C
JML $C061F0


Hi Conn, I have done what you have listed, I typed everything in like you had said, but it did not work, I had made the ips patch off the asm file but when I try to run it on bsnes it does not work. I had messed up some how and I do not know where?
Code:
hirom

    ; hardcore mute
    org $ce9921 ; mute spc
    db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00


    ; hook section
    org $C061EB
    JML msuTrack
    NOP

    org $c019ea
    JSL pauseStart

    org $C0DA24
    JSL dying

    org $C031F9
    JSL pauseEnd

    ; code section
    org $Cfff30 ; free space

    pauseStart:
    LDA #$00cd
    STA $002007
    JSL $C02E89 ; native code
    RTL

    pauseEnd:
    LDA #$0003
    STA $002007
    JSL $C01439
    RTL

    dying:
    LDA #$0000
    STA $002007
    JSL $C06190
    RTL

    msuTrack:
    PHP
    SEP #$2002
    STA $002004
    LDA #$00
    STA $002005
    STA $002006
    loop:
    lda $002000
    AND #$40
    BNE loop
    LDA #$f0
    STA $002006
    LDA #$03    ; all tracks loop?
    STA $002007
    PLP
    TSC ; native code
    SEC
    SBC #$000Cd
    JML $C061F0
avatar
Polargames
Crystal Maiden
Crystal Maiden

Since : 2018-06-06

Back to top Go down

Re: Wolfenstein MSU-1 (finished)

Post by pepillopev on Fri 15 Jun 2018 - 23:29

@polargames What problem are you having? Making the IPS file?

pepillopev



Since : 2017-10-16

Back to top Go down

Re: Wolfenstein MSU-1 (finished)

Post by Polargames on Sat 16 Jun 2018 - 1:35

pepillopev wrote:@polargames What problem are you having? Making the IPS file?

Well, I not sure, I had watched a video on how to make a Ips patch and I when I had made it, unheaded the rom and then patched it, It would not play. Now is the patch made from the asm file correct. What I did was open flips ips, clicked on said rom and then when it asked for modded rom I clicked on the asm file and then saved the new patch. Did I mess up some how?
avatar
Polargames
Crystal Maiden
Crystal Maiden

Since : 2018-06-06

Back to top Go down

Re: Wolfenstein MSU-1 (finished)

Post by Conn on Sat 16 Jun 2018 - 7:06

flips surely can't read asm files. You need xkas to apply an asm code to a Rom.
I added a ips patch to the first post, see how it works.
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Wolfenstein MSU-1 (finished)

Post by Polargames on Sat 16 Jun 2018 - 18:04

Conn wrote:flips surely can't read asm files. You need xkas to apply an asm code to a Rom.
I added a ips patch to the first post, see how it works.

Ok, I now understand that flips was the issue, Thank you for letting me know :-)
avatar
Polargames
Crystal Maiden
Crystal Maiden

Since : 2018-06-06

Back to top Go down

Re: Wolfenstein MSU-1 (finished)

Post by Conn on Sat 16 Jun 2018 - 18:11

Prev already released everything:
https://www.zeldix.net/t1727-wolfenstein-3d
Thanks for your contribution, finding the romhacking notes and the music Wink
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Wolfenstein MSU-1 (finished)

Post by Polargames on Sat 16 Jun 2018 - 18:41

Conn wrote:Prev already released everything:
https://www.zeldix.net/t1727-wolfenstein-3d
Thanks for your contribution, finding the romhacking notes and the music Wink

Wow:P , I had saw that. Your welcome Conn, I think I could be the music finder person lol. Conn I had offered this to prev as well, but would you like a MSU1 CD cover art and wallpaper? I had made them when I was board before I had ask you help on msu1. They are photoedshoped and such, but I made sure they look nice. :-) Please let me know if you like one. :-)
avatar
Polargames
Crystal Maiden
Crystal Maiden

Since : 2018-06-06

Back to top Go down

Re: Wolfenstein MSU-1 (finished)

Post by Conn on Sun 17 Jun 2018 - 4:59

I think it would be best if you'd share the cover here
https://www.zeldix.net/t1727-wolfenstein-3d
with all users Wink
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Wolfenstein MSU-1 (finished)

Post by Polargames on Sun 17 Jun 2018 - 13:01

Conn wrote:I think it would be best if you'd share the cover here
https://www.zeldix.net/t1727-wolfenstein-3d
with all users Wink

Thanks Conn, I did what you had said. :-D
avatar
Polargames
Crystal Maiden
Crystal Maiden

Since : 2018-06-06

Back to top Go down

Re: Wolfenstein MSU-1 (finished)

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum