script "Infinite Time"  
run:
    poke $10092A $99
script "Finish Round Now!"  
on:
    poke $10092A $00
script "Always Enable Special Move"  
on:
    temp0=maincpu.rb@024103
run:
    maincpu.rb@024103=$02
off:
    maincpu.rb@024103=temp0
script "Unlock Ryo Sakazaki"  
on:
    temp0=maincpu.rw@02094E
    temp1=maincpu.rw@020BD2
run:
    poke $10E063 $FF
    maincpu.rw@02094E=$4E71
    maincpu.rw@020BD2=$4E71
off:
    maincpu.rw@02094E=temp0
    maincpu.rw@020BD2=temp1
script "Always have Easy Supers" \
 "comm:For all characters; Back, Forward, A+C performs Desperation Move."  
on:
    temp0=maincpu.rq@038BBA
    temp1=maincpu.rd@038BC2
    temp2=maincpu.rq@038C52
    temp3=maincpu.rd@038C5A
    temp4=maincpu.rq@038D00
    temp5=maincpu.rd@038D08
    temp6=maincpu.rq@038D78
    temp7=maincpu.rd@038D80
    temp8=maincpu.rq@038DFC
    temp9=maincpu.rd@038E04
    temp10=maincpu.rq@038E66
    temp11=maincpu.rd@038E6E
    temp12=maincpu.rq@038EEC
    temp13=maincpu.rd@038EF4
    temp14=maincpu.rq@038F80
    temp15=maincpu.rd@038F88
    temp16=maincpu.rq@039014
    temp17=maincpu.rd@03901C
    temp18=maincpu.rq@0390A6
    temp19=maincpu.rd@0390AE
    temp20=maincpu.rq@039142
    temp21=maincpu.rd@03914A
    temp22=maincpu.rq@0391CA
    temp23=maincpu.rd@0391D2
    temp24=maincpu.rq@03923E
    temp25=maincpu.rd@039246
    temp26=maincpu.rq@0392D6
    temp27=maincpu.rd@0392DE
    temp28=maincpu.rq@039390
    temp29=maincpu.rd@039398
    temp30=maincpu.rq@039430
    temp31=maincpu.rd@039438
run:
    temp32=$0F0400000C0F030C
    temp33=$F00EFF09
    maincpu.rq@038BBA=temp32
    maincpu.rd@038BC2=temp33
    maincpu.rq@038C52=temp32
    maincpu.rd@038C5A=temp33
    maincpu.rq@038D00=temp32
    maincpu.rd@038D08=temp33
    maincpu.rq@038D78=temp32
    maincpu.rd@038D80=temp33
    maincpu.rq@038DFC=temp32
    maincpu.rd@038E04=temp33
    maincpu.rq@038E66=temp32
    maincpu.rd@038E6E=temp33
    maincpu.rq@038EEC=temp32
    maincpu.rd@038EF4=temp33
    maincpu.rq@038F80=temp32
    maincpu.rd@038F88=temp33
    maincpu.rq@039014=temp32
    maincpu.rd@03901C=temp33
    maincpu.rq@0390A6=temp32
    maincpu.rd@0390AE=temp33
    maincpu.rq@039142=temp32
    maincpu.rd@03914A=temp33
    maincpu.rq@0391CA=temp32
    maincpu.rd@0391D2=temp33
    maincpu.rq@03923E=temp32
    maincpu.rd@039246=temp33
    maincpu.rq@0392D6=temp32
    maincpu.rd@0392DE=temp33
    maincpu.rq@039390=temp32
    maincpu.rd@039398=temp33
    maincpu.rq@039430=temp32
    maincpu.rd@039438=temp33
off:
    maincpu.rq@038BBA=temp0
    maincpu.rd@038BC2=temp1
    maincpu.rq@038C52=temp2
    maincpu.rd@038C5A=temp3
    maincpu.rq@038D00=temp4
    maincpu.rd@038D08=temp5
    maincpu.rq@038D78=temp6
    maincpu.rd@038D80=temp7
    maincpu.rq@038DFC=temp8
    maincpu.rd@038E04=temp9
    maincpu.rq@038E66=temp10
    maincpu.rd@038E6E=temp11
    maincpu.rq@038EEC=temp12
    maincpu.rd@038EF4=temp13
    maincpu.rq@038F80=temp14
    maincpu.rd@038F88=temp15
    maincpu.rq@039014=temp16
    maincpu.rd@03901C=temp17
    maincpu.rq@0390A6=temp18
    maincpu.rd@0390AE=temp19
    maincpu.rq@039142=temp20
    maincpu.rd@03914A=temp21
    maincpu.rq@0391CA=temp22
    maincpu.rd@0391D2=temp23
    maincpu.rq@03923E=temp24
    maincpu.rd@039246=temp25
    maincpu.rq@0392D6=temp26
    maincpu.rd@0392DE=temp27
    maincpu.rq@039390=temp28
    maincpu.rd@039398=temp29
    maincpu.rq@039430=temp30
    maincpu.rd@039438=temp31
script " "  
script "P1 Infinite Energy"  
run:
    poke $10049A $60
script "P1 Drain all Energy Now!"  
on:
    poke $10049A $00
script "P1 Rapid Fire - Quick Punch"  
run:
    poke $10FD96 $00|(peek($10FD96)&~10)
script "P1 Rapid Fire - Quick Kick"  
run:
    poke $10FD96 $00|(peek($10FD96)&~20)
script "P1 Rapid Fire - Strong Punch"  
run:
    poke $10FD96 $00|(peek($10FD96)&~40)
script "P1 Rapid Fire - Strong Kick"  
run:
    poke $10FD96 $00|(peek($10FD96)&~80)
script "P1 Play with Ryo Sakazaki" \
 "comm:Free player selection - Use it on the selection screen."  
on:
    poke $101E93 $10
script "P1 See Endsequence Now!" \
 "comm:Set it ingame, in a Round.
  NOTE: If ONLY ONE credit is used; then after the endsequence all characters' quotes are also displayed."  
on:
    if (dpeek($100010)==$49D8)&&((peek($100034)&01)==01)
      temp0=$01
    endif
    if (temp0==$01)
      poke $10049A $01
      poke $10059A $00
      dpoke $10092A $0001
      poke $100058 $01
      poke $10B2F3 $10
    endif
script " "  
script "P2 Infinite Energy"  
run:
    poke $10059A $60
script "P2 Drain all Energy Now!"  
on:
    poke $10059A $00
script "P2 Rapid Fire - Quick Punch"  
run:
    poke $10FD9C $00|(peek($10FD9C)&~10)
script "P2 Rapid Fire - Quick Kick"  
run:
    poke $10FD9C $00|(peek($10FD9C)&~20)
script "P2 Rapid Fire - Strong Punch"  
run:
    poke $10FD9C $00|(peek($10FD9C)&~40)
script "P2 Rapid Fire - Strong Kick"  
run:
    poke $10FD9C $00|(peek($10FD9C)&~80)
script "P2 Play with Ryo Sakazaki" \
 "comm:Free player selection - Use it on the selection screen."  
on:
    poke $101F93 $10
script "P2 See Endsequence Now!" \
 "comm:Set it ingame, in a Round.
  NOTE: If ONLY ONE credit is used; then after the endsequence all characters' quotes are also displayed."  
on:
    if (dpeek($100010)==$49D8)&&((peek($100034)&02)==02)
      temp0=$01
    endif
    if (temp0==$01)
      poke $10059A $01
      poke $10049A $00
      dpoke $10092A $0001
      poke $100059 $01
      poke $10B2F3 $10
    endif
script " "  
script "No Background Music"  
run:
    cpu audio
    poke $FE2D $00
    cpu main
script "Hide Background" \
 "comm:Activate before match start"  
run:
    poke $1051E1 peek($1051E0)band7F
    dpoke $401FFE $0000
    if ((peek($100003)band9F)gt90and(peek($100003)band40)==$00)
      poke $1051E1 $10
      poke $100920 $20
      poke $10092B $3C
      poke $1041D9 $40
      dpoke $1041DA $00
      dpoke $401FFE $8F8F
    endif
off:
    poke $100920 $40
    poke $1051E1 peek($1051E0)band7F
    dpoke $401FFE $0000
script "Select Cartridge/NeoGeo Type" \
 "comm:Use in conjunction with the 'Skip RAM/ROM Checks' cheat for the best effect, then enable it and reset. The Home (NEOGEO) setting may open up other aspects of the game or it may even make the game unplayable." \
 "0x80/Arcade (MVS)"\
 "0x00/Home (NEOGEO)" 
run:
    poke $10FD82 param
script "Skip RAM/ROM Checks" \
 "comm:Also allows a quicker start-up without the green screens."  
on:
    temp0=maincpu.rd@C1315C
    temp1=maincpu.rd@C1314E
    temp2=maincpu.rd@C131E8
    temp3=maincpu.rd@C13184
    temp4=maincpu.rd@C1212E
    temp5=maincpu.rd@C134FA
run:
    if (maincpu.rd@C1315C==$51CFFFF2)
      maincpu.rd@C1315C=$6000EB08
    endif
    if (maincpu.rd@C1314E==$51CFFFF2)
      maincpu.rd@C1314E=$6000EB16
    endif
    if (maincpu.rd@C131E8==$51CFFFF2)
      maincpu.rd@C131E8=$6000EA52
    endif
    if (maincpu.rd@C13184==$51CFFFF2)
      maincpu.rd@C13184=$6000EAB6
    endif
    if (maincpu.rd@C1212E==$51CFFFF2)
      maincpu.rd@C1212E=$6000EB36
    endif
    if (maincpu.rd@C134FA==$51CFFFF2)
      maincpu.rd@C134FA=$6000E892
    endif
off:
    maincpu.rd@C1315C=temp0
    maincpu.rd@C1314E=temp1
    maincpu.rd@C131E8=temp2
    maincpu.rd@C13184=temp3
    maincpu.rd@C1212E=temp4
    maincpu.rd@C134FA=temp5
script "Infinite Credits" \
 "comm:Alternatively just set Free Play to ON in the Dip Switches menu"  
run:
    maincpu.rb@D00034=$99
