Advertisement
Kirkq

More Pastebin Stuff

Sep 22nd, 2015
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. local tempstate = {}
  2. local iterations
  3. local outeriterations
  4. local value
  5. local i
  6. local j
  7. local temp
  8.  
  9. moviefile = "MemDump.vbm"
  10. dumpfile = moviefile..".txt"
  11. io.output(dumpfile)
  12.  
  13. value = 0
  14. tempstate[value] = savestate.create()
  15. savestate.save(tempstate[value])
  16.  
  17. iterations = 1
  18. outeriterations = 0
  19. temptemp1 = 1
  20. temptemp2 = 1
  21. freeze = 1
  22.  
  23. snes9x.speedmode("maximum")
  24.  
  25.  
  26. while outeriterations < 720 do
  27.  
  28.  
  29. while iterations < 100 do -----------------------------------------
  30.  
  31. temptemp1=memory.readword(0x00302E)
  32. iterations = iterations + 1
  33. snes9x.frameadvance()
  34.  
  35. gui.text(0,0,"1: " .. outeriterations * 100 + iterations)
  36. io.write(temptemp1, "\n")
  37.  
  38. end
  39.  
  40. iterations = 1
  41. outeriterations = outeriterations + 1
  42.  
  43. end
  44.  
  45. snes9x.speedmode("normal")
  46. snes9x.pause()
  47.  
  48. while true do
  49.  
  50. gui.text(0,0,"1: " .. memory.readbyte(0x7E3FA2))
  51. gui.text(0,10,"2: " .. memory.readbyte(0x7E3FA4))
  52. gui.text(0,20,"3: " .. memory.readbyte(0x7E3FA6))
  53.  
  54. gui.text(0,40,"4: " .. memory.readbyte(0x7E3FA0))
  55.  
  56. snes9x.frameadvance()
  57. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement