Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Assume we have a memory map like:
- > 001
- (Which would be reserved with `alloc 3` and then written to like `write 0b1, 2` to make it look like that)
- The way hacky VM will handle addition goes like:
- Given an input of
- > `add 2, 2`
- (these are offsets in the memory map)
- the memory map now looks like:
- > 010
- This opens up some interesting functionality, as you'll see.
- Given a memory map that looks like
- > 0000111
- and the instruction
- > `add 6, 6`
- the memory map will now look like:
- > 0001110
Add Comment
Please, Sign In to add comment