Added the filled rectangle function

Added comments for the new functions
Finished the circle function
This commit is contained in:
iDunnoDev
2022-11-13 00:53:24 +00:00
committed by iDunnoDev
parent 3d102dd9b8
commit c3113bc245
14 changed files with 877 additions and 0 deletions

19
stage4/sign.pl Normal file
View File

@ -0,0 +1,19 @@
#!/usr/bin/perl
open(SIG, $ARGV[0]) || die "open $ARGV[0]: $!";
$n = sysread(SIG, $buf, 1000);
if($n > 510){
print STDERR "boot block too large: $n bytes (max 510)\n";
exit 1;
}
print STDERR "boot block is $n bytes (max 510)\n";
$buf .= "\0" x (510-$n);
$buf .= "\x55\xAA";
open(SIG, ">$ARGV[0]") || die "open >$ARGV[0]: $!";
print SIG $buf;
close SIG;