Real mode assembly I: Difference between revisions

→‎So where's the code?: Fix some poor assembly
[unchecked revision][unchecked revision]
(Added "use16" line. Fixed segments, so memory below the bootloader can be used)
(→‎So where's the code?: Fix some poor assembly)
Line 27:
<source lang="asm">
org 0x7C00 ; add 0x7C00 to label addresses
use16 bits 16 ; tell the assembler we want 16 bit code
 
mov ax, 0 ; set up segments
Line 33:
mov es, ax
mov ss, ax ; setup stack
mov sp, 0xFFF00x7C00 ; stack grows downwards from 0xFFF00x7C00
mov si, welcome
1,490

edits