https://sourceware.org/bugzilla/show_bug.cgi?id=23854
--- Comment #4 from Stas Sergeev <stsp at users dot sourceforge.net> --- (In reply to H.J. Lu from comment #3) > do_dpmi_int has Ah, I see now what you mean. > 8f69: 8b 83 00 00 00 00 mov 0x0(%ebx),%eax 8f6b: > R_386_GOT32X DPMI_return_from_realmode > 8f6f: 66 05 00 48 add $0x4800,%ax > 8f73: 66 2b 83 00 00 00 00 sub 0x0(%ebx),%ax 8f76: > R_386_GOT32X DPMI_dummy_start > 8f7a: 66 89 46 30 mov %ax,0x30(%esi) > 8f7e: 0f b7 45 2c movzwl 0x2c(%ebp),%eax > > Please show me the corresponding C code. Of course: https://github.com/stsp/dosemu2/blob/devel/src/dosext/dpmi/dpmi.c#L2053 The function is called "do_int31", but it gets inlined into do_dpmi_int. This is exactly the line you look for. The ugly macros are here: https://github.com/stsp/dosemu2/blob/devel/src/include/cpu.h#L138 https://github.com/stsp/dosemu2/blob/devel/src/include/bios.h#L161 I will also try to attach the dpmi.s with -verbose-asm for you tomorrow. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils