Lines Matching refs:segment
123 static unsigned long vm86_segment(u_char segment, struct address *addr) in vm86_segment() argument
125 segment--; in vm86_segment()
127 if (segment > PREFIX_SS_) { in vm86_segment()
132 addr->selector = VM86_REG_(segment); in vm86_segment()
133 return (unsigned long)VM86_REG_(segment) << 4; in vm86_segment()
137 static long pm_address(u_char FPU_modrm, u_char segment, in pm_address() argument
143 segment--; in pm_address()
147 if (segment > PREFIX_SS_) { in pm_address()
153 switch (segment) { in pm_address()
159 addr->selector = PM_REG_(segment); in pm_address()
221 && (addr_modes.override.segment == PREFIX_CS_)) { in FPU_get_address()
281 address += vm86_segment(addr_modes.override.segment, addr); in FPU_get_address()
285 address = pm_address(FPU_modrm, addr_modes.override.segment, in FPU_get_address()
305 && (addr_modes.override.segment == PREFIX_CS_)) { in FPU_get_address_16()
356 if (addr_modes.override.segment == PREFIX_DEFAULT) in FPU_get_address_16()
357 addr_modes.override.segment = PREFIX_SS_; in FPU_get_address_16()
361 if (addr_modes.override.segment == PREFIX_DEFAULT) in FPU_get_address_16()
362 addr_modes.override.segment = PREFIX_SS_; in FPU_get_address_16()
372 if (addr_modes.override.segment == PREFIX_DEFAULT) in FPU_get_address_16()
373 addr_modes.override.segment = PREFIX_SS_; in FPU_get_address_16()
389 address += vm86_segment(addr_modes.override.segment, addr); in FPU_get_address_16()
393 address = pm_address(FPU_modrm, addr_modes.override.segment, in FPU_get_address_16()