VOGONS

Common searches


Search results

Display options

Re: x86 registers for emulating in a cross-platform way?

in PC Emulation
I consider that confusing and obsfucated. Just use and and stick to uint16_t / int16_t etc. Completely agree, they are the "standard" types for a reason. when you talk about a byte or (double)word value, everyone that knows software knows what you're talking about, don't they? No. Is a "byte" …

Re: x86 registers for emulating in a cross-platform way?

in PC Emulation
C guarantees the alignment of a type matches its size (at least for sizes up to the platform's natural word size). If you have a struct that has a uint16_t member followed by a uint32_t, padding is required to align the latter. The alignment of the struct overall will also be equal to the alignment …

Re: Benchmarking DOSBox on latest machines

in PC Emulation
Kerr Avon wrote: Have we reached the point yet where DOSBox, running on the most powerful PCs available to the public, can emulate games faster than they can run in real DOS on any machines? Not even close. Real DOS on a real P3 (maybe even P2) will outperform any machine running DOSBox.

Re: Null pointer dereferences

It looks like old code written to be portable before "offsetof" was widely available. It's not dereferencing a NULL pointer, it's getting the address of a member variable when the "this" pointer is NULL which is equivalent to finding the offset of that member (in bytes) from "this".

Page 51 of 66