script "Infinite Time (Turn OFF on the Bonus Stage!)"  
run:
    poke $108406 $99
script "Finish this Fight Now!"  
on:
    poke $108406 $00
script "Invincibility [Master Code]"  
on:
    temp0=maincpu.rd@0F6B9A
    temp1=maincpu.rd@0FDDA0
    temp2=maincpu.rd@0FDDA4
    temp3=maincpu.rd@0FDDA8
    temp4=maincpu.rd@0FDDAC
    temp5=maincpu.rd@01DAEA
    temp6=maincpu.rw@01DAEE
    temp7=maincpu.rd@0FDDB0
    temp8=maincpu.rw@0FDDB4
    temp9=maincpu.rd@0FDDB6
    temp10=maincpu.rd@0FDDBA
    temp11=maincpu.rd@0FDDBE
    temp12=maincpu.rd@01DC14
    temp13=maincpu.rw@01DC18
    temp14=maincpu.rd@0FDDC2
    temp15=maincpu.rw@0FDDC6
    temp16=maincpu.rd@0FDDC8
    temp17=maincpu.rd@0FDDCC
    temp18=maincpu.rd@0FDDD0
run:
    maincpu.rd@0F6B9A=$61007204
    maincpu.rd@0FDDA0=$4A2C007E
    maincpu.rd@0FDDA4=$6606C22C
    maincpu.rd@0FDDA8=$006B4E75
    maincpu.rd@0FDDAC=$72004E75
    maincpu.rd@01DAEA=$4EB9000F
    maincpu.rw@01DAEE=$DDB0
    maincpu.rd@0FDDB0=$4A2E12FE
    maincpu.rw@0FDDB4=$6608
    maincpu.rd@0FDDB6=$082E0000
    maincpu.rd@0FDDBA=$0A684E75
    maincpu.rd@0FDDBE=$70004E75
    maincpu.rd@01DC14=$4EB9000F
    maincpu.rw@01DC18=$DDC2
    maincpu.rd@0FDDC2=$4A2E12FE
    maincpu.rw@0FDDC6=$6608
    maincpu.rd@0FDDC8=$082E0001
    maincpu.rd@0FDDCC=$0A684E75
    maincpu.rd@0FDDD0=$70004E75
off:
    maincpu.rd@0F6B9A=temp0
    maincpu.rd@0FDDA0=temp1
    maincpu.rd@0FDDA4=temp2
    maincpu.rd@0FDDA8=temp3
    maincpu.rd@0FDDAC=temp4
    maincpu.rd@01DAEA=temp5
    maincpu.rw@01DAEE=temp6
    maincpu.rd@0FDDB0=temp7
    maincpu.rw@0FDDB4=temp8
    maincpu.rd@0FDDB6=temp9
    maincpu.rd@0FDDBA=temp10
    maincpu.rd@0FDDBE=temp11
    maincpu.rd@01DC14=temp12
    maincpu.rw@01DC18=temp13
    maincpu.rd@0FDDC2=temp14
    maincpu.rw@0FDDC6=temp15
    maincpu.rd@0FDDC8=temp16
    maincpu.rd@0FDDCC=temp17
    maincpu.rd@0FDDD0=temp18
script "Hit Anywhere (Both Players)"  
on:
    temp0=maincpu.rw@0F6BA6
run:
    maincpu.rw@0F6BA6=$6012
off:
    maincpu.rw@0F6BA6=temp0
script "Desperation Move (Both Players)" \
 "comm:Desperation moves are always available for all players, including CPU player in 1UP game!"  
on:
    temp0=maincpu.rb@01D475
    temp1=maincpu.rb@01D483
run:
    maincpu.rb@01D475=$00
    maincpu.rb@01D483=$80
off:
    maincpu.rb@01D475=temp0
    maincpu.rb@01D483=temp1
script "Always successful in all Bonus Games" \
 "comm:This cheat must be turned on before selecting a bonus game. Selected bonus game will be succeed."  
on:
    temp0=maincpu.rw@017B58
    temp1=maincpu.rw@017EBA
    temp2=maincpu.rd@018376
    temp3=maincpu.rw@01837A
    temp4=maincpu.rb@01838D
    temp5=maincpu.rw@017A7A
    temp6=maincpu.rq@0182FC
    temp7=peek($108448)
    temp8=maincpu.rw@1767C
run:
    maincpu.rw@017B58=$6002
    maincpu.rw@017EBA=$4E71
    maincpu.rd@018376=$4EB90001
    maincpu.rw@01837A=$8562
    maincpu.rb@01838D=$00
    maincpu.rw@017A7A=$6002
    maincpu.rq@0182FC=$1B7C000004CD600A
    if (peek($109FC3)==$3C)&&(peek($10843B)==03)
      poke $108448 $01
      maincpu.rw@1767C=$4E71
    endif
off:
    maincpu.rw@017B58=temp0
    maincpu.rw@017EBA=temp1
    maincpu.rd@018376=temp2
    maincpu.rw@01837A=temp3
    maincpu.rb@01838D=temp4
    maincpu.rw@017A7A=temp5
    maincpu.rq@0182FC=temp6
    poke $108448 temp7
    maincpu.rw@01767C=temp8
script "Select Ending" \
 "0x00/Ryo"\
 "0x01/Robert"\
 "0x02/Eiji"\
 "0x03/Jack"\
 "0x04/LEE"\
 "0x05/King"\
 "0x06/Mickey"\
 "0x07/John"\
 "0x08/Big"\
 "0x09/Takuma"\
 "0x0A/Yuri"\
 "0x0B/Temjin"\
 "0x0C/Big(2)" 
run:
    poke $109F91 param
script "Select Background" \
 "0x01/Ryo"\
 "0x02/Robert"\
 "0x03/Eiji"\
 "0x04/Jack"\
 "0x05/LEE"\
 "0x06/King"\
 "0x07/Mickey"\
 "0x08/John"\
 "0x09/Big"\
 "0x0A/Takuma"\
 "0x0B/Yuri"\
 "0x0C/Temjin"\
 "0x0D/Geese"\
 "0x0E/Bonus Stage"\
 "0x0F/Bonus Stage 2"\
 "0x0F/Blank" 
run:
    poke $108401 param
script "Special Defeat Animation Everytime" \
 "comm:Any final hit will cause special defeat animation, instead of special move."  
on:
    temp0=maincpu.rb@020504
run:
    maincpu.rb@020504=$60
off:
    maincpu.rb@020504=temp0
script "Easy F,D,DF moves" \
 "comm:F,D,F + Button A to perform uppercut. (For Ryo and Robert.)"  
on:
    temp0=maincpu.rb@025F65
run:
    maincpu.rb@025F65=$08
off:
    maincpu.rb@025F65=temp0
script "Select Perm Winner" \
 "0x90/P1"\
 "0x91/P2" 
run:
    poke $10840A param
script " "  
script "P1 Infinite Energy"  
run:
    poke $1092ED $60
script "P1 Drain All Energy Now!"  
on:
    poke $1092ED $01
script "P1 Invincibility" \
 "comm:Works after you've enabled 'Invincibility [Master Code]'"  
on:
    temp0=peek($10A67E)
    temp1=peek($10A97E)
    temp2=peek($10AA7E)
    temp3=peek($10AB7E)
run:
    poke $10A67E $01
    poke $10A97E $01
    poke $10AA7E $01
    poke $10AB7E $01
off:
    poke $10A67E temp0
    poke $10A97E temp1
    poke $10AA7E temp2
    poke $10AB7E temp3
script "P1 Infinite Power"  
run:
    poke $1094A4 $80
script "P1 Always have Minimum Power"  
run:
    poke $1094A4 $00
script "P1 Drain All Power Now!"  
on:
    poke $1094A4 $00
script " "  
script "Free player selection-Can be used anytime!"  
script "At selection screen, use AFTER selection,"  
script "however there are some palette glitches."  
script " "  
script "P1 Select Character" \
 "comm:Win causes 'Game Over' when you select Geese" \
 "0x01/Ryo Sakazaki"\
 "0x02/Robert Garcia"\
 "0x03/Eiji Kisaragi"\
 "0x04/Jack Turner"\
 "0x05/Lee Pai Long"\
 "0x06/King"\
 "0x07/Mickey Rogers"\
 "0x08/John Crawley"\
 "0x09/Big"\
 "0x0A/Takuma Sakazaki"\
 "0x0B/Yuri Sakazaki"\
 "0x0C/Temjin"\
 "0x0D/Geese Howard" 
change:
    poke $1092E3 param
script " "  
script "P2 Infinite Energy"  
run:
    poke $1093ED $60
script "P2 Drain All Energy Now!"  
on:
    poke $1093ED $01
script "P2 Invincibility" \
 "comm:Works after you've enabled 'Invincibility [Master Code]'"  
on:
    temp0=peek($10A07E)
    temp1=peek($10A37E)
    temp2=peek($10A47E)
    temp3=peek($10A57E)
run:
    poke $10A07E $01
    poke $10A37E $01
    poke $10A47E $01
    poke $10A57E $01
off:
    poke $10A07E temp0
    poke $10A37E temp1
    poke $10A47E temp2
    poke $10A57E temp3
script "P2 Infinite Power"  
run:
    poke $1095A4 $80
script "P2 Always have Minimum Power"  
run:
    poke $1095A4 $00
script "P2 Drain All Power Now!"  
on:
    poke $1095A4 $00
script "Next fight = Boss Now!"  
on:
    poke $108429 $0E
script "Next fight = Special BossNow!"  
on:
    poke $108429 $0F
script " "  
script "Free player selection-Can be used anytime!"  
script "At selection screen, use AFTER selection,"  
script "however there are some palette glitches."  
script " "  
script "P2 Select Character" \
 "comm:Win causes 'Game Over' when you select Geese" \
 "0x01/Ryo Sakazaki"\
 "0x02/Robert Garcia"\
 "0x03/Eiji Kisaragi"\
 "0x04/Jack Turner"\
 "0x05/Lee Pai Long"\
 "0x06/King"\
 "0x07/Mickey Rogers"\
 "0x08/John Crawley"\
 "0x09/Big"\
 "0x0A/Takuma Sakazaki"\
 "0x0B/Yuri Sakazaki"\
 "0x0C/Temjin"\
 "0x0D/Geese Howard" 
change:
    poke $1093E3 param
script " "  
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
