Giter Site home page Giter Site logo

rmw2 / processable Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 3.83 MB

An x86 process emulator and visual inspector/debugger for the browser

Home Page: http://rmw2.github.io/processable/alpha/

JavaScript 68.03% Assembly 13.97% C 0.11% CSS 17.27% HTML 0.62%

processable's People

Contributors

rmw2 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

processable's Issues

Support non-uniform stack byte groupings

Allow users to toggle decoding breaks at different addresses of the stack.

Probably do this by editing the stack component to maintain a list of break addresses, and group bytes based on successive intervals formed by the breaks. Clicking on a break address will remove that break, and clicking on an unbroken address will add it to the list.

Refactor redundant decodable "item" components

The stack, static sections, heap, and even register components all have very similar 'item' components, which consist of a group of bytes, represented by a FixedInt, that can be toggled between several different decodings. There are subtle differences in the presentation of each, but it would be nice if they could inherit from a common "DecodableItem" or something.

Refactor library to be able to call other library functions

Currently each library function calls SysV_arg() on its own, but this means that a library function can't call another library function without manipulating registers and pushing another return address onto the stack. Ideally, the FFI could be abstracted out into a single wrapper function so rather than

abs: () => {
  let val = SysV_arg(0);
  SysV_ret(ALU.abs(val));
}

We could instead have

// for example
abs: (val) => {
  return ALU.abs(val)
}
// ...
lib = (func, argc) => {
  let args = [];
  for (let i = 0; i < argc; i++)
    args.push(SysV_arg(i));
  let retval = func(...args);
  SysV_ret(retval);
}

And have a single wrapper function, lib(), which does the wrapping in the FFI. Each function would need to specify it's number of arguments, and variadic functions would be tricky.

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.