File: multisect4.asm

package info (click to toggle)
yasm 0.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 12,200 kB
  • ctags: 18,827
  • sloc: asm: 73,479; ansic: 48,942; sh: 9,773; python: 8,913; xml: 1,108; makefile: 147; pascal: 62; 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