The BIOS is a setup program for your PC and is technically firmware encompassed upon the motherboard chipset.
To alter this firmware, we need to 'flash' the chip with the new setup program data.
What do you mean exactly?
Do you just want to configure the BIOS setup program, or construct your own program for the CMOS chip?