emulenv.cc (5616:05fd71ca96db) | emulenv.cc (5966:833e487aa8f7) |
---|---|
1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 91 unchanged lines hidden (view full) --- 100 int segFromInst = machInst.legacy.seg; 101 if (segFromInst) 102 seg = (SegmentRegIndex)(segFromInst - 1); 103 } else { 104 seg = SEGMENT_REG_SS; 105 } 106} 107 | 1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 91 unchanged lines hidden (view full) --- 100 int segFromInst = machInst.legacy.seg; 101 if (segFromInst) 102 seg = (SegmentRegIndex)(segFromInst - 1); 103 } else { 104 seg = SEGMENT_REG_SS; 105 } 106} 107 |
108void EmulEnv::setSeg(const ExtMachInst & machInst) 109{ 110 seg = SEGMENT_REG_DS; 111 //Handle any segment override that might have been in the instruction 112 int segFromInst = machInst.legacy.seg; 113 if (segFromInst) 114 seg = (SegmentRegIndex)(segFromInst - 1); 115} |
|