Patent ID: 7958345

Claim:
A method for adjusting a setup default value of a basic input output system (BIOS) in a mainboard, comprising: providing a BIOS memory comprising a boot block and a main block, wherein the boot block stores an adjusting table, and the main block stores an original setup default value and a dynamic table; reading the adjusting table stored in the boot block; reading the original setup default value stored in the main block; reading the dynamic table stored in the main block according to the adjusting table, comprising: checking whether the adjusting table comprises at least one overwrite value, so as to determine whether to overwrite a portion of the content of the original setup default value; if the adjusting table comprises the overwrite value, reading the overwrite value from the adjusting table; and reading a corresponding overwrite address and a corresponding mask from the dynamic table according to a corresponding point address of the overwrite value in the adjusting table; adjusting the original setup default value to obtain a customized setup default value according to the adjusting table and the dynamic table, comprising: reading the original setup default value from the BIOS memory or the setup value memory according to the overwrite address; and adjusting the original setup default value to be the customized setup default value according to the mask and the overwrite value, comprising: rotating the original setup default value and the mask rightward by i bits according to the mask, wherein i is an integer greater than or equal to 0; performing AND operation on the rotated original setup default value and the rotated mask, so as to obtain a first intermediate value; performing OR operation on the first intermediate value and the overwrite value, so as to obtain a second intermediate value; and rotating the second intermediate value leftward by i bits, so as to serve as the customized setup default value; and storing the customized setup default value in a setup value memory.