f29f9ef021
direct reads/writes from native variables to the x86 (guest) memory image. Look at the end of bochs.h. Don't know if that's the right place to put them, but here you can extend these macros to platform-specific asm() code if you like, or just use the generic C code I supplied. Some platforms have special instructions for byte-order swapping etc. Also, you can't make any assumptions about the alignment of the pointers passed.