7748
Bug in code-size check. It costs 18 bytes in the boot sector to load 2 tracks of disk (63KB). At that rate I can load 6 more tracks before I need to perform the drudgery again of recalculating offsets.
This commit is contained in:
parent
1ec98d402b
commit
d6e2ba80dd
|
@ -39,7 +39,7 @@ apps/hex < baremetal/boot.hex > boot.bin
|
||||||
cat boot.bin a.bin > disk.bin
|
cat boot.bin a.bin > disk.bin
|
||||||
dd if=disk.bin of=disk.img conv=notrunc
|
dd if=disk.bin of=disk.img conv=notrunc
|
||||||
|
|
||||||
if [ `stat --printf="%s" disk.bin` -ge 96768 ] # 3 tracks * 63 sectors per track * 512 bytes per sector (keep this sync'd with boot.hex)
|
if [ `stat --printf="%s" disk.bin` -ge 129024 ] # 4 tracks * 63 sectors per track * 512 bytes per sector (keep this sync'd with boot.hex)
|
||||||
then
|
then
|
||||||
echo "disk.bin won't all be loaded on boot"
|
echo "disk.bin won't all be loaded on boot"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -33,7 +33,7 @@ dd if=/dev/zero of=disk.img count=20160 # 512-byte sectors, so 10MB
|
||||||
cat boot.bin a.bin > disk.bin
|
cat boot.bin a.bin > disk.bin
|
||||||
dd if=disk.bin of=disk.img conv=notrunc
|
dd if=disk.bin of=disk.img conv=notrunc
|
||||||
|
|
||||||
if [ `stat --printf="%s" disk.bin` -ge 96768 ] # 3 tracks * 63 sectors per track * 512 bytes per sector (keep this sync'd with boot.hex)
|
if [ `stat --printf="%s" disk.bin` -ge 129024 ] # 4 tracks * 63 sectors per track * 512 bytes per sector (keep this sync'd with boot.hex)
|
||||||
then
|
then
|
||||||
echo "disk.bin won't all be loaded on boot"
|
echo "disk.bin won't all be loaded on boot"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue