diff options
| author | Drahflow <drahflow@gmx.de> | 2017-08-21 07:52:18 +0200 |
|---|---|---|
| committer | Drahflow <drahflow@gmx.de> | 2017-08-21 07:52:18 +0200 |
| commit | d2f33fe305f6a2a4ad2a18f1eafc4e1e4741bd8c (patch) | |
| tree | 8588f847d55f6a624e31fcdd2f85d41bbaebe6f7 /compiler | |
| parent | 139931a432f304ef06cd381d0f408490b96d7013 (diff) | |
Added _' for indexed access to stack
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 |
