diff options
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/elymasGlobal.ey | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/compiler/elymasGlobal.ey b/compiler/elymasGlobal.ey index cfa58cf..66ab27f 100644 --- a/compiler/elymasGlobal.ey +++ b/compiler/elymasGlobal.ey @@ -2056,6 +2056,24 @@ :retn ] /ey_ defv + # top stack element is an integer index into the stack, + # starting with 0 at the one below this index + # duplicates the indicated stack element to the top + [[ + /rbx :popqReg + /rdx :popqReg + 63 /rdx :btrqImm8Reg + /unboxed :jcLbl8 + 8 /rdx /rdx :movqMemDisp8Reg + @unboxed + + 8 /rdx /rsp /rdx :movqMemIndexScaleReg + /rdx :pushqReg + + /rbx :pushqReg + :retn + ]] /ey_' defv + # top stack element is a string defining a stack shuffle # 0-9: push the thusly numbered element # *: execute top element |
