Mercurial > repos > blastem
diff 68kinst.h @ 2133:8554751f17b5
Remove use of get_native_pointer in 68K instruction decoding in preparation for word RAM interleaving
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 17 Mar 2022 22:41:42 -0700 |
parents | faa3a4617f62 |
children | 53411df7fc71 |
line wrap: on
line diff
--- a/68kinst.h Thu Mar 17 22:40:49 2022 -0700 +++ b/68kinst.h Thu Mar 17 22:41:42 2022 -0700 @@ -334,8 +334,9 @@ } m68k_vector; typedef int (*format_label_fun)(char * dst, uint32_t address, void * data); +typedef uint16_t (*m68k_fetch_fun)(uint32_t address, void *data); -uint16_t * m68k_decode(uint16_t * istream, m68kinst * dst, uint32_t address); +uint32_t m68k_decode(m68k_fetch_fun fetch, void *data, m68kinst * dst, uint32_t address); uint32_t m68k_branch_target(m68kinst * inst, uint32_t *dregs, uint32_t *aregs); uint8_t m68k_is_branch(m68kinst * inst); uint8_t m68k_is_noncall_branch(m68kinst * inst);