Yes it's really usefull I'll integrate it to my code thanks.MichaelPetch wrote:It might be more useful to make it a macro so it can be reused:Code: Select all
%define LIN_TO_FAR_ADDR(linaddr) (((linaddr >> 4) << 16) | (linaddr & 0xf))
Ok, not the case yet but when I'll need this (and I will for sure) I'll make sure to enable unreal mode.MichaelPetch wrote:It is possible to reference memory with 32-bit registers in 16-bit code but this only works if you have entered unreal mode