Lines Matching refs:rom
147 my ($rom, $romsize);
153 my $filesize = read(R, $rom, MAXROMSIZE+1);
159 substr($rom, 2, 1) = chr((length($rom) + 511) / 512);
160 &writerom($ARGV[0], \$rom);
171 $romsize = &getromsize(\$rom);
187 $rom .= "\xFF" x ($romsize - length($rom));
191 substr($rom, 2, 1) = chr(($romsize / 512) % 256);
193 my $identoffset = &addident(\$rom);
194 &pcipnpheaders(\$rom, $identoffset);
195 &undiheaders(\$rom);
197 substr($rom, MINROMSIZE-2, 2) = "\x80\x80"
199 &checksum(\$rom);
200 &writerom($ARGV[0], \$rom);
204 my ($rom);
210 my $filesize = read(R, $rom, MAXROMSIZE+1);
214 &pcipnpheaders(\$rom);
215 &undiheaders(\$rom);
216 &checksum(\$rom);
217 &writerom($ARGV[0], \$rom);