Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Reduce RETF to 3 gas (VERY_LOW_TIER)
  • Loading branch information
pdobacz committed Apr 2, 2024
commit 2ea3b4f3e73dc655e52bf7aafe874006b9c8ed01
2 changes: 1 addition & 1 deletion spec/eof.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ The following instructions are introduced in EOF code:
- push new element to `return_stack` `(current_code_idx, pc+3)`
- update `current_code_idx` to `idx` and set `pc` to 0
- `RETF (0xe4)` instruction
- deduct 4 gas
- deduct 3 gas
- pops `val` from `return_stack` and sets `current_code_idx` to `val.code_section` and `pc` to `val.pc`
- `JUMPF (0xe5)` instruction
- deduct 5 gas
Expand Down