object.c
/*
 *  advanceBitPosition - advance to the next bit position at which to emit code
 */
advance to the next bit position at which to emit code
advance to the next bit position at which to emit code
void advanceBitPosition(Section *section, int count) {
    int bitPosCtr;
    bitPosCtr = (int)section->parcelBitPosCounter + count;
    while (bitPosCtr > 15) {
        section->originCounter += 1;
        section->locationCounter += 1;
        bitPosCtr -= 16;
    }
    section->parcelBitPosCounter = (u8)bitPosCtr;
    section->wordBitPosCounter = ((section->locationCounter & 0x03) * 16) + section->parcelBitPosCounter;
    if (pass == 1 && section->originCounter > section->size) {
        section->size = section->originCounter;
    }
}
void advanceBitPosition ( Section * section , int count ) { int bitPosCtr ; bitPosCtr = ( int ) section -> parcelBitPosCounter + count ; while ( bitPosCtr > 15 ) { section -> originCounter += 1 ; section -> locationCounter += 1 ; bitPosCtr -= 16 ; } section -> parcelBitPosCounter = ( u8 ) bitPosCtr ; section -> wordBitPosCounter = ( ( section -> locationCounter & 0x03 ) * 16 ) + section -> parcelBitPosCounter ; if ( pass == 1 && section -> originCounter > section -> size ) { section -> size = section -> originCounter ; } }
advanceBitPosition - advance to the next bit position at which to emit code
advanceBitPosition - advance to the next bit position at which to emit code