frozenLake

Untitled

Apr 18th, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. addHook("MapLoad", function()
  2. CodeTable={0, 224, 162, 72, 96, 0, 97, 30, 98, 0, 210, 2, 210, 18, 114, 8, 50, 64, 18, 10, 96, 0, 97, 62, 98, 2, 162, 74, 208, 46, 209, 46, 114, 14, 208, 46, 209, 46, 162, 88, 96, 11, 97, 8, 208, 31, 112, 10, 162, 103, 208, 31, 112, 10, 162, 118, 208, 31, 112, 3, 162, 133, 208, 31, 112, 10, 162, 148, 208, 31, 18, 70, 255, 255, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 255, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 255, 129, 129, 129, 129, 129, 129, 129, 255, 129, 129, 129, 129, 129, 129, 129, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 255, 129, 129, 129, 129, 129, 129, 255, 128, 128, 128, 128, 128, 128, 128, 255, 129, 129, 129, 129, 129, 129, 255, 129, 129, 129, 129, 129, 129, 255, 255}
  3. end)
  4.  
  5. hud.add(function(v,p)
  6. v.drawFill(64,4,192,192,31)
  7. local stackPointer = 0
  8. while stackPointer<4096
  9. loadedByteA = CodeTable[stackPointer+1]
  10. loadedByteB = CodeTable[stackPointer+2]
  11. if loadedByteA == 0
  12. if loadedByteB == 224
  13. v.drawFill(64,4,192,192,31)
  14. stackPointer = stackPointer+2
  15. elseif loadedByteB == 238
  16. print("RET not implemented yet")
  17. else
  18. print("UH OH AN ERROR")
  19. end
  20. elseif loadedByteA and 16
  21. stackPointer=loadedByteB+((loadedByteA%16)*256)
  22. print("Jumping to "+stackPointer)
  23. end
  24. end
  25. end)
Advertisement
Add Comment
Please, Sign In to add comment