Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate Assembler from polkavm's spectool #103

Merged
merged 10 commits into from
Sep 22, 2024
Merged

Integrate Assembler from polkavm's spectool #103

merged 10 commits into from
Sep 22, 2024

Conversation

tomusdrw
Copy link
Contributor

This PR adds another option to load a new program to execute/debug in PVM - typing the assembly code from polkavm's spectool.

The a special version of spectool (see https://github.com/tomusdrw/polkavm/tree/master/tools/spectool-wasm) has been compiled to WASM and published to NPM registry as @typeberry/spectool-wasm. This code is later loaded here, so one can write in the same format as for spectool JSON files to get the bytecode directly in the browser.

I've also integrated a disassembler, so after loading a PVM program from any input (i.e. JSON upload, example) you can click "Load" again and then go to Assembly to alter the program. Hopefully the resulting bytecode should be the same :)

Copy link

netlify bot commented Sep 13, 2024

Deploy Preview for typeberry-toolkit ready!

Name Link
🔨 Latest commit ecb1e98
🔍 Latest deploy log https://app.netlify.com/sites/typeberry-toolkit/deploys/66f0781237ddfc000943606f
😎 Deploy Preview https://deploy-preview-103--typeberry-toolkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@tomusdrw tomusdrw merged commit 3e215e2 into main Sep 22, 2024
5 checks passed
@tomusdrw tomusdrw deleted the td-assembler branch September 22, 2024 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant