Closed ixje closed 4 years ago
@comountainclimber it fails on linting. It would be great if you can pull it through some auto formatter according to the rules you've setup. I don't know what tools to use for it.
Amazing work @ixje thank you for all of your help with this
Here's the fixed VM script disassembler. I don't remember how to test things in javascript and I couldn't find any examples in the repo, so I'll leave that up to you.
Things I did:
opcodetable
and re-write disassemble logicResults:
I've manually verified the output against the C# VM and it matches.
I'd personally change the
disassemble
function to take a plain hex-string (or even better a buffer) instead of the base64 encoded hex-string to make it more re-usable. But the current way is the closest as to how the previous function was. Take it as you please :)