Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2020
770
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. -- Script by Link and Biggestsonicfan
  2. require("model2"); -- Import model2 machine globals
  3.  
  4. function Init()
  5. easy_debug()
  6. end
  7.  
  8.  
  9. function easy_debug()
  10. --Disables DIP7 and makes debug enabled by Service Coin + P1 Punch
  11. local disable_dip_7 = 0x22DC
  12. Romset_PatchByte(0, disable_dip_7, BE)
  13.  
  14. local easy_display = 0x2410
  15. Romset_PatchByte(0, easy_display, 0x08)
  16. Romset_PatchByte(0, easy_display+1, 0x20)
  17. end
  18.  
  19. function Frame()
  20.  
  21. end
  22.  
  23.  
  24. function timecheatfunc(value)
  25. I960_WriteWord(0x500028,50*64); --50 seconds always
  26. end
  27.  
  28. function selectcheatfunc(value)
  29. I960_WriteWord(0x500024,50*64); --50 seconds always
  30. end
  31.  
  32. function p1healthcheat(value)
  33. I960_WriteByte(0x510EAC,139*64);
  34. end
  35.  
  36. function numrounds(value)
  37. I960_WriteByte(0x500052,value);
  38. end
  39.  
  40.  
  41. Options =
  42. {
  43.  
  44. timecheat={name="Infinite Time (In Battle)",values={"Off","On"},runfunc=timecheatfunc},
  45. timeselect={name="Infinite Time (Select Screen)",values={"Off","On"},runfunc=selectheatfunc},
  46. p1health={name="P1 Infinite Health",values={"Off","On"},runfunc=p1healthcheat},
  47.  
  48. }
  49.  
  50. function PostDraw()
  51. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement