function writebit($offset, $location, $fill){ global $rom; if ($fill == 0){ $rom[$offset] = $rom[$offset] | (0x80 >> $location); } return 1; }