| Autor |
Nachricht |
livinskull
Mitglied
Benutzerprofil
Anmeldungsdatum: 01.03.2011
Beiträge: 18
|
livinskull Mitglied
01:51:46 03.03.2012 Titel: |
|
Zitieren |
Das da n NOP steht liegt wohl hauptsächlich an der FAT Spezifikation
| Zitat: | Jump instruction to boot code. This field has two allowed forms:
jmpBoot[0] = 0xEB, jmpBoot[1] = 0x??, jmpBoot[2] = 0x90
and
jmpBoot[0] = 0xE9, jmpBoot[1] = 0x??, jmpBoot[2] = 0x??
0x?? indicates that any 8-bit value is allowed in that byte. What this
forms is a three-byte Intel x86 unconditional branch (jump)
instruction that jumps to the start of the operating system bootstrap
code. This code typically occupies the rest of sector 0 of the volume
following the BPB and possibly other sectors. Either of these forms
is acceptable. JmpBoot[0] = 0xEB is the more frequently used
format.
| |
Zuletzt bearbeitet von livinskull am 01:52:03 03.03.2012, insgesamt 1-mal bearbeitet |
|
 |
lupo1977
Mitglied
Benutzerprofil
Anmeldungsdatum: 01.12.2010
Beiträge: 47
|
lupo1977 Mitglied
05:44:31 03.03.2012 Titel: |
|
Zitieren |
Meines Wissens kann das auch mit one pass Assemblern zusammen hängen. Sprungbefehle haben je nach Distanz zum Sprungziel eine verschiedene Größe. Das Problem tritt nun bei noch unbekannten Sprungzielen auf. Es ist ad hoc nicht klar wie weit ein Sprungziel weiter unten entfernt ist. Man löst das aber einfach indem man erstmal genug Speicher für einen maximalen Sprung reserviert, diesen mit NOPs füllt und dann später den Sprungbefehl dort einträgt.
http://en.wikipedia.org/wiki/Assembly_language
| Zitat: | | One-pass assemblers go through the source code once. Any symbol used before it is defined will require "errata" at the end of the object code (or, at least, no earlier than the point where the symbol is defined) telling the linker or the loader to "go back" and overwrite a placeholder which had been left where the as yet undefined symbol was used. | |
|
|
|
 |
|
Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Sie können Beiträge in dieses Forum schreiben. Sie können auf Beiträge in diesem Forum antworten. Sie können Ihre Beiträge in diesem Forum nicht bearbeiten. Sie können Ihre Beiträge in diesem Forum nicht löschen. Sie können an Umfragen in diesem Forum nicht mitmachen.
|
|
|
|
|