spo600:assembler_basics
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| spo600:assembler_basics [2025/01/08 21:50] – [6502 Assembly Language in the Emulator] chris | spo600:assembler_basics [2025/02/11 11:58] (current) – chris | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ===== Format of an Assembly Language program | ===== Format of an Assembly Language program | ||
| - | The traditional extension for assembly-language source files that will be used as input to an assembler is '' | + | The traditional extension for assembly-language source files that will be used as input to an assembler is '' |
| An assembly-language program consists of: | An assembly-language program consists of: | ||
| Line 82: | Line 82: | ||
| On a Linux system, you will need to meet three requirements to get your assembly language program to work: | On a Linux system, you will need to meet three requirements to get your assembly language program to work: | ||
| - | - Code must be placed in the '' | + | - Code must be placed in the '' |
| - Data must be placed in either the '' | - Data must be placed in either the '' | ||
| - There must be a globally-defined symbol which the linker ('' | - There must be a globally-defined symbol which the linker ('' | ||
| Line 93: | Line 93: | ||
| - Run the linker: '' | - Run the linker: '' | ||
| - | Note that the '' | + | Note that the '' |
| ==== Compiling an Assembly Language Program using the NASM Assembler | ==== Compiling an Assembly Language Program using the NASM Assembler | ||
| Line 101: | Line 101: | ||
| Notes: | Notes: | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| ==== Compiling an Assembly Language program using GCC ==== | ==== Compiling an Assembly Language program using GCC ==== | ||
spo600/assembler_basics.1736373023.txt.gz · Last modified: 2025/01/08 21:50 by chris
