Skip to content

Commit

Permalink
Linter 😳
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Nov 28, 2022
1 parent b4f0cc6 commit 963c046
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions EIPS/eip-663.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@ If the code is valid EOF1, the following execution rules apply:
1. These instructions are followed by an 8-bit immediate value, which we call `imm`, and can have a value of 0 to 255. We introduce the variable `n` which equals to `imm + 17`.

2. For `DUPN`:

- If the current stack height is less than `n`, then a stack underflow exception is issued.
- If the current stack height is at the limit (1024), a stack overflow exception is issued.
- Otherwise the `n`'th stack item is duplicated at the top of the stack. (*Note: We use 1-based indexing here.*)

3. For `SWAPN`:

- If the current stack height is less than `n + 1`, then a stack underflow exception is issued.
- Otherwise the `n + 1`th stack item is swapped with the top stack item.

Expand Down

0 comments on commit 963c046

Please sign in to comment.