object.c
/*
 *  putParcel - put a parcel into a module image referenced by a parcel address
 */
put a parcel into a module image referenced by a parcel address
put a parcel into a module image referenced by a parcel address
static void putParcel(Section *section, u32 parcelAddress, u16 parcel) {
    u32 addr;
    ObjectBlock *block;
    if (pass == 1) return;
    addr = parcelAddress * 2;
    block = section->objectBlock;
    while (addr + 1 >= block->imageSize) {
        if (block->image == NULL) block->lowestParcelAddress = parcelAddress;
        block->image = (u8 *)reallocate(block->image, block->imageSize, block->imageSize + IMAGE_INCREMENT);
        block->imageSize += IMAGE_INCREMENT;
    }
    block->image[addr] = parcel >> 8;
    block->image[addr + 1] = parcel & 0xff;
    if (parcelAddress < block->lowestParcelAddress) block->lowestParcelAddress = parcelAddress;
    if (parcelAddress > block->highestParcelAddress) block->highestParcelAddress = parcelAddress;
}
static void putParcel ( Section * section , u32 parcelAddress , u16 parcel ) { u32 addr ; ObjectBlock * block ; if ( pass == 1 ) return ; addr = parcelAddress * 2 ; block = section -> objectBlock ; while ( addr + 1 >= block -> imageSize ) { if ( block -> image == NULL ) block -> lowestParcelAddress = parcelAddress ; block -> image = ( u8 * ) reallocate ( block -> image , block -> imageSize , block -> imageSize + IMAGE_INCREMENT ) ; block -> imageSize += IMAGE_INCREMENT ; } block -> image [ addr ] = parcel >> 8 ; block -> image [ addr + 1 ] = parcel & 0xff ; if ( parcelAddress < block -> lowestParcelAddress ) block -> lowestParcelAddress = parcelAddress ; if ( parcelAddress > block -> highestParcelAddress ) block -> highestParcelAddress = parcelAddress ; }
putParcel - put a parcel into a module image referenced by a parcel address
putParcel - put a parcel into a module image referenced by a parcel address