CS241 Chapter Notes -Sunedison, Operand
Document Summary
This handout is intended to accompany the class lectures on the loader and relocator. The handout should not be considered a substitute for the lecture. Dissemination of this handout (including posting on a website) is explicitly prohibited unless permission is obtained. We cannot expect that the memory required to load and execute our program will always be available as a se- quential amount of memory starting at address 0x00. Because of this, a loader must be allowed to relocate our assembled program to any starting address. The starting address is supplied to the loader by the os. The one obstacle we encounter during relocation is when the original assembly program used the assembler directive. The semantics of . word when the operand is a label are that the assembler should output the 32-bit address corresponding to the location where the label was declared.