Hello,

Not sure if this is the right place to request help for this, but I'm
reading mbr.S file (i386 arch), but could not figure out what the function
is for the line that reads "1:".
The code below that line is setting up statck, but why do we need this line?
and there are more than one line that reads "1:" in the mbr.S file, which
confues me even more.

Could someone help expain it a little a bit, or point me to some links that
helps? thanks.

========================================================
... ...

 .text
.code16

.globl start
start:
/* Adjust %cs to be right */
ljmp $BOOTSEG, $1f

1:   /* what is this, a label? */


/* Set up stack */
movw %cs, %ax

/*
* We don't need to disable and re-enable interrupts around the
* the load of ss and sp.

... ...
========================================================

Complete mbr.S file I'm refering to:
http://www.openbsd.org/cgi-bin/cvsweb/src/sys/arch/i386/stand/mbr/mbr.S?rev=1.21;content-type=text%2Fx-cvsweb-markup


I'm still working on my AT&T assembly learning, googled around but could not
find anything related.

Thanks,
Alan

Reply via email to