#include "field.h" /** @file field.c * @brief You will modify this file and implement six functions * @details Your implementation of the functions defined in field.h. * You may add other function if you find it helpful. Added functions * should be declared static to indicate they are only used * within this file. For example, methods you write may need a mask value. * You might write a method to compute a mask for you and use it wherever * it is needed as opposed to just putting the code in line. * These additional static functions are similar to Java’s private methods. *

* @author Your name goes here */ /** @todo Implement in field.c based on documentation contained in field.h */ int getBit (int value, int position) { return false; } /** @todo Implement in field.c based on documentation contained in field.h */ int setBit (int value, int position) { return value; } /** @todo Implement in field.c based on documentation contained in field.h */ int clearBit (int value, int position) { return value; } /** @todo Implement in field.c based on documentation contained in field.h */ int getField (int value, int hi, int lo, bool isSigned) { return 0; } /** @todo Implement in field.c based on documentation contained in field.h */ int setField (int oldValue, int hi, int lo, int newValue) { return 0; } /** @todo Implement in field.c based on documentation contained in field.h */ int fieldFits (int value, int width, bool isSigned) { return 0; }