aboutsummaryrefslogtreecommitdiff
path: root/compiler/elymasGlobalSys.ey
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2013-09-27 21:56:11 +0200
committerDrahflow <drahflow@gmx.de>2013-09-27 21:56:11 +0200
commitf6af44d6742d96ecf002eb24475ecc23bf3d2d72 (patch)
tree41580218c3f6dfaf8733e846146d2a682d8a85bd /compiler/elymasGlobalSys.ey
parent7521804dd8818778311720e4b0e1d69a029debb3 (diff)
currentScope now in r14
Diffstat (limited to 'compiler/elymasGlobalSys.ey')
-rw-r--r--compiler/elymasGlobalSys.ey12
1 files changed, 4 insertions, 8 deletions
diff --git a/compiler/elymasGlobalSys.ey b/compiler/elymasGlobalSys.ey
index 55f2369..05017d7 100644
--- a/compiler/elymasGlobalSys.ey
+++ b/compiler/elymasGlobalSys.ey
@@ -10,19 +10,15 @@
8 /r15 :subqImm8Reg
/r15 :popqMem
- ::currentScope /rax :movqImmReg
8 /r15 :subqImm8Reg
- /rax /rcx :movqMemReg
- /rcx /r15 :movqRegMem
- /rax :popqMem # load scope from argument
+ /r14 /r15 :movqRegMem
+ /r14 :popqReg # load scope from argument
internalExecuteIdentifier /rax :movqImmReg
/rax :callqReg
- ::currentScope /rax :movqImmReg
- /rax :pushqMem
- /r15 /rcx :movqMemReg
- /rcx /rax :movqRegMem # restore old scope
+ /r14 :pushqReg
+ /r15 /r14 :movqMemReg
8 /r15 :addqImm8Reg
/r15 :pushqMem