Mercurial > repos > blastem
comparison runtime.S @ 541:a59ac6b4b5b5
Get rid of the native stack option the 68K core. Trying to make it work with code that messes with the stack is not worth the trouble.
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 15 Feb 2014 22:35:18 -0800 |
parents | 4ca826862174 |
children | 5d57fd8b44f8 |
comparison
equal
deleted
inserted
replaced
540:4ca826862174 | 541:a59ac6b4b5b5 |
---|---|
175 shr $1, %cl | 175 shr $1, %cl |
176 and $1, %cl | 176 and $1, %cl |
177 mov %cl, (%rsi) | 177 mov %cl, (%rsi) |
178 ret | 178 ret |
179 | 179 |
180 .global m68k_modified_ret_addr | |
181 m68k_modified_ret_addr: | |
182 add $16, %rsp | |
183 call m68k_native_addr | |
184 jmp *%rcx | |
185 | |
186 .global m68k_native_addr_and_sync | 180 .global m68k_native_addr_and_sync |
187 m68k_native_addr_and_sync: | 181 m68k_native_addr_and_sync: |
188 call m68k_save_context | 182 call m68k_save_context |
189 push %rcx | 183 push %rcx |
190 mov %rsi, %rdi | 184 mov %rsi, %rdi |