File: multisect4.asm

package info (click to toggle)
yasm 1.3.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,880 kB
  • sloc: asm: 74,423; ansic: 53,055; python: 9,927; sh: 5,276; xml: 1,617; makefile: 214; pascal: 95; sed: 16
file content (31 lines) | stat: -rw-r--r-- 687 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
[map all]
; Memory below 0800h is reserved for the BIOS and the MBR
BSS_START       equ 0800h

; PXELINUX needs lots of BSS, so it relocates itself on startup
;%if IS_PXELINUX
TEXT_START      equ 9000h
;%else
;TEXT_START      equ 7C00h
;%endif

;
; The various sections and their relationship
;
org TEXT_START

times 0x100 db 0x3
 
section .earlybss nobits start=BSS_START
resb 0x100
section .bcopy32  align=16 follows=.data vfollows=.earlybss
times 0x100 db 0x1
section .bss      nobits align=256 vfollows=.bcopy32
resb 0x100
 
section .text     start=TEXT_START
section .data     align=16 follows=.text
times 0x100 db 0x2

section .latebss  nobits align=16 follows=.bcopy32
resb 0x100