Skip to content

Commit f2f1d31

Browse files
committed
[WIP] Implement subroutine opcodes
1 parent 255dcbc commit f2f1d31

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

eth/abc.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,6 +1590,21 @@ def stack_dup(self, position: int) -> None:
15901590
"""
15911591
...
15921592

1593+
#
1594+
# Return Stack Managemement
1595+
#
1596+
@abstract_method
1597+
def rstack_push_int(self) -> Callable[[int], None]:
1598+
"""
1599+
Push integer onto the return stack.
1600+
"""
1601+
1602+
@abstract_method
1603+
def rstack_pop1_int(self) -> Callable[[int], None]:
1604+
"""
1605+
Pop integer off the return stack and return it.
1606+
"""
1607+
15931608
#
15941609
# Computation result
15951610
#

0 commit comments

Comments
 (0)