Mercurial > repos > blastem
diff m68k_util.c @ 2500:d44fe974fb85
Get blastem compiling with new 68K core
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 30 Apr 2024 22:32:08 -0700 |
parents | d74d3998482c |
children | 5f725429d08f |
line wrap: on
line diff
--- a/m68k_util.c Tue Apr 30 00:02:14 2024 -0700 +++ b/m68k_util.c Tue Apr 30 22:32:08 2024 -0700 @@ -97,3 +97,11 @@ { //TODO: implement me } + +void start_68k_context(m68k_context *context, uint32_t pc) +{ + context->scratch1 = context->pc = pc; + m68k_read_16(context); + context->prefetch = context->scratch1; + context->pc += 2; +}