Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement OP_DUP and OP_SWAP (ruby#122)
* Make it possible to implement a gen_ function that writes to a codeblock, and implement OP_DUP as an example. Import CRuby opcodes and VM instruction size by hand. * Remove commented-out C impl of gen_dup * Huh. Mov isn't implemented. I thought it was. * Remove pub from mov() since I'm no longer using it * Add implementation of gen_swap, stack_swap and test_gen_swap * Use Rust-ier return syntax
- Loading branch information
Showing
4 changed files
with
299 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.