From 487647645e46bcbe36c1f4ff76b5ecda3e668172 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sat, 2 Feb 2013 01:56:56 +0000 Subject: [PATCH] Don't backup esi/edx registers as there's no way of adjusting variable position on the stack, yet --- src/pim/Machine.cpp | 6 +++--- src/pim/X86Native.cpp | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pim/Machine.cpp b/src/pim/Machine.cpp index 38287661d..2b917885d 100644 --- a/src/pim/Machine.cpp +++ b/src/pim/Machine.cpp @@ -447,9 +447,9 @@ namespace pim int arg3 = CSPop().Integer; int arg2 = CSPop().Integer; int arg1 = CSPop().Integer; - std::cout << arg1 << std::endl; - std::cout << arg2 << std::endl; - std::cout << arg3 << std::endl; + //std::cout << arg1 << std::endl; + //std::cout << arg2 << std::endl; + //std::cout << arg3 << std::endl; nativeFunction(arg1, arg2, arg3); } diff --git a/src/pim/X86Native.cpp b/src/pim/X86Native.cpp index eb603afdb..334c4a93e 100644 --- a/src/pim/X86Native.cpp +++ b/src/pim/X86Native.cpp @@ -12,8 +12,8 @@ namespace pim unsigned char * esi = new unsigned char[1024*1024];//malloc(1024*1024); esi += 512; - emit("52"); //push edx - emit("56"); //push esi + //emit("52"); //push edx + //emit("56"); //push esi emit("BE"); //mov esi, machineStack emit((intptr_t)esi); @@ -273,8 +273,8 @@ namespace pim emitPlaceholder(argument.Integer); break; case Opcode::Return: - emit("5E"); //pop esi - emit("5A"); //pop edx + //emit("5E"); //pop esi + //emit("5A"); //pop edx emit("C3"); //ret break; case Opcode::Leave: