提交 ef8f14a8 编写于 作者: U Ulf Möller

another fix for the debug print

上级 aecb0b01
...@@ -164,6 +164,8 @@ sub main'dec { &out1("decl",@_); } ...@@ -164,6 +164,8 @@ sub main'dec { &out1("decl",@_); }
sub main'inc { &out1("incl",@_); } sub main'inc { &out1("incl",@_); }
sub main'push { &out1("pushl",@_); $stack+=4; } sub main'push { &out1("pushl",@_); $stack+=4; }
sub main'pop { &out1("popl",@_); $stack-=4; } sub main'pop { &out1("popl",@_); $stack-=4; }
sub main'pushf { &out0("pushf"); $stack+=4; }
sub main'popf { &out0("popf"); $stack-=4; }
sub main'not { &out1("notl",@_); } sub main'not { &out1("notl",@_); }
sub main'call { &out1("call",$under.$_[0]); } sub main'call { &out1("call",$under.$_[0]); }
sub main'ret { &out0("ret"); } sub main'ret { &out0("ret"); }
...@@ -527,7 +529,7 @@ sub main'printf ...@@ -527,7 +529,7 @@ sub main'printf
sub pushvars sub pushvars
{ {
&out0("pushf"); &main'pushf();
&main'push("edx"); &main'push("edx");
&main'push("ecx"); &main'push("ecx");
&main'push("eax"); &main'push("eax");
...@@ -538,5 +540,5 @@ sub popvars ...@@ -538,5 +540,5 @@ sub popvars
&main'pop("eax"); &main'pop("eax");
&main'pop("ecx"); &main'pop("ecx");
&main'pop("edx"); &main'pop("edx");
&out0("popf"); &main'popf();
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册