1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2025-02-09 04:30:37 +00:00

Just easier to add divmod opcode

This commit is contained in:
David Schmenk 2018-01-15 14:16:48 -08:00 committed by GitHub
parent 5f9ba155eb
commit 90f0bb324c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1342,7 +1342,7 @@ The compact code representation comes through the use of opcodes closely matched
| $30 | DROP | drop top stack value
| $32 | DUP | duplicate top stack value
| $34 | NOP |
| $36 | NOP |
| $36 | DIVMOD | divide next from to by top, leave result and remainder on stack
| $38 | BRGT | branch next from top greater than top
| $3A | BRLT | branch next from top less than top
| $3C | BREQ | branch next from top equal to top