adriancable / 8086tiny

Official repository for 8086tiny: a tiny PC emulator/virtual machine

Home Page:www.megalith.co.uk/8086tiny

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unaligned access

opened this issue · comments

The CAST macro is used to generate unaligned accesses. This breaks compatibility on architectures which don't support unaligned access, like ARM.

I'm looking into this issue and it seems that I would have to rewrite the CAST macro to be an inline function that uses byte loads.

I use unaligned access on ARM all the time. I guess it depends on which ARM, as there are many slightly different ARM architectures.