Skip to content

Commit

Permalink
Fix emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanaobrien committed Jan 6, 2025
1 parent 23407d7 commit 3cf1e26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpu/cz80/cz80.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,10 @@ void Cz80_Reset(cz80_struc *CPU)
static inline unsigned char picodrive_read(unsigned short a)
{
uptr v = z80_read_map[a >> Z80_MEM_SHIFT];
#ifndef __EMSCRIPTEN__
if (map_flag_set(v))
return ((z80_read_f *)(v << 1))(a);
#endif
return *(unsigned char *)((v << 1) + a);
}
#endif
Expand Down

0 comments on commit 3cf1e26

Please sign in to comment.