Re: Is there a boot sector guru in the house?

From: Peter Edwards <peadar.edwards_at_gmail.com>
Date: Wed, 5 Jan 2005 01:36:06 +0000
I don't have a box I can test this on, but this looks like a definite
candidate to get
3 more bytes:

--- boot0.S     24 Nov 2004 15:39:04 -0000      1.12
+++ boot0.S     5 Jan 2005 01:27:31 -0000
_at__at_ -314,8 +314,7 _at__at_
                cmpw $MAGIC,0x1fe(%bx)          # Bootable?
                jne main.10                     # No
                pushw %si                       # Save
-               movw $crlf,%si                  # Leave some
-               callw puts                      #  space
+               callw putn                      # Leave space
                popw %si                        # Restore
                jmp *%bx                        # Invoke bootstrap

If my arithmetic is correct, that leaves us wanting one more byte.
I don't get the save/restore of %si at the end, and judging by the
comment, someone else didn't either. It could be of some use to the
chained loader, but our  boot1.S doesn't do anything with it.
Received on Wed Jan 05 2005 - 00:36:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:25 UTC