Skip to content

Commit

Permalink
Add DUP instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
5nord committed Jul 17, 2024
1 parent 01ece62 commit 41dd002
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
20 changes: 19 additions & 1 deletion k3/t3xf/opcode/opcode_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions k3/t3xf/opcode/opcodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,16 @@ drop:
description: |+
Remove the item at the top of the stack and discard it.
dup:
opcode: 11
context:
- vm
operations:
pre: [obj]
post: [obj, obj]
description: |+
Duplicate the item at the top of the stack.
else:
opcode: 58
context:
Expand Down

0 comments on commit 41dd002

Please sign in to comment.