32x: drc: one manual page worth of opcodes implemented (x86 and arm)
[picodrive.git] / cpu / sh2 / stub_x86.asm
index 256d64a..e53e947 100644 (file)
@@ -3,14 +3,16 @@ section .text
 global sh2_drc_entry ; SH2 *sh2, void *block
 
 sh2_drc_entry:
+    push    ebx
     push    ebp
-    mov     ebp, [esp+4+4]     ; context
-    mov     eax, [esp+4+8]
+    mov     ebp, [esp+8+4]     ; context
+    mov     eax, [esp+8+8]
     jmp     eax
 
 global sh2_drc_exit
 
 sh2_drc_exit:
     pop     ebp
+    pop     ebx
     ret