about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]subx/apps/crenshaw2-1bin193 -> 196 bytes
-rw-r--r--subx/apps/crenshaw2-1.subx5
2 files changed, 2 insertions, 3 deletions
diff --git a/subx/apps/crenshaw2-1 b/subx/apps/crenshaw2-1
index 12e6ad52..6d42dbec 100644..100755
--- a/subx/apps/crenshaw2-1
+++ b/subx/apps/crenshaw2-1
Binary files differdiff --git a/subx/apps/crenshaw2-1.subx b/subx/apps/crenshaw2-1.subx
index 095f0740..f78276ad 100644
--- a/subx/apps/crenshaw2-1.subx
+++ b/subx/apps/crenshaw2-1.subx
@@ -17,13 +17,12 @@
 
 # main:
   # error(Error_integer)
-    # prepare call
-  55/push                         .               .             .           .             .           .           .               .                 # push EBP
-  89/copy                         3/mod/direct    5/rm32/EBP    .           .             .           4/r32/ESP   .               .                 # copy ESP to EBP
     # push args
   68/push                         .               .             .           .             .           .           .               Error_integer/imm32  # push 5
     # call
   e8/call                         .               .             .           .             .           .           error/disp32
+    # discard arg
+  81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               4/imm32           # add 4 to ESP
   # exit(0)
   bb/copy                         .               .             .           .             .           .           .               0/imm32           # copy 0 to EBX
   b8/copy                         .               .             .           .             .           .           .               1/imm32/exit      # copy 1 to EAX
143'>143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177