Giter Site home page Giter Site logo

wokwi / pioasm-wasm Goto Github PK

View Code? Open in Web Editor NEW
14.0 4.0 4.0 17 KB

Raspberry Pi Pico pioasm compiled to Web Assembly

Home Page: https://wokwi.com/tools/pioasm

License: Other

Makefile 22.55% JavaScript 77.45%
raspberry-pi-pico pi-pico pio web-assembly

pioasm-wasm's Introduction

pioasm-wasm

Raspberry Pi Pico pioasm tool compiled to Web Assembly.

Online pioasm

The online version of pioasm allows you to compile PIO assembly code to C/Python/Ada right in your browser:

https://wokwi.com/tools/pioasm

Library usage example

You can install the library from npm:

npm install --save pioasm

or yarn:

yarn add pioasm

Usage example:

import { PIOAssembler } from 'pioasm';

const source = `
  .program blink
  pull block
  out y, 32
`;

const pioasm = new PIOAssembler();
pioasm.assemble(source).then(result => {
  console.log(result.output);
})

License

This project, excluding pioasm, is released under the MIT license. Consult the LICENSE file for more details.

pioasm-wasm's People

Contributors

turro75 avatar urish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pioasm-wasm's Issues

pioasm fails with cryptic error messages

When you feed an invalid program, pioasm fails with a cryptic error message.

For instance, given the following input:

jmp 1

you'll get an error that says: exception thrown: 5322392 instead of the expected output (that you get from running the command line version of pioasm):

input.pio:2.1-5: instruction is invalid outside of a program
    2 | jmp 1
      | ^~~~~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.