summaryrefslogtreecommitdiff
path: root/test/elftest.asm
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-04-30 20:52:08 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-04-30 20:52:08 +0000
commitd7ed89eac9580f280fe0017b22c8e38ca75ed8e3 (patch)
tree98c4fcdd286b44e14f79aa65271e5caa1c2c7be4 /test/elftest.asm
parentea8382740dbe5e1607742d0a7c7c139dffcc5ae5 (diff)
downloadnasm-d7ed89eac9580f280fe0017b22c8e38ca75ed8e3.tar.gz
nasm-d7ed89eac9580f280fe0017b22c8e38ca75ed8e3.tar.bz2
nasm-d7ed89eac9580f280fe0017b22c8e38ca75ed8e3.zip
NASM 0.94
Diffstat (limited to 'test/elftest.asm')
-rw-r--r--test/elftest.asm24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/elftest.asm b/test/elftest.asm
index a6034a6..c5a729f 100644
--- a/test/elftest.asm
+++ b/test/elftest.asm
@@ -23,17 +23,17 @@
; [16] Reference a data-section symbol in the data section
; [17] Reference a BSS-section symbol in the data section
-[BITS 32]
-[GLOBAL lrotate] ; [1]
-[GLOBAL greet] ; [1]
-[GLOBAL asmstr] ; [2]
-[GLOBAL textptr] ; [2]
-[GLOBAL selfptr] ; [2]
-[GLOBAL integer] ; [3]
-[EXTERN printf] ; [10]
-[COMMON commvar 4] ; [7]
+ BITS 32
+ GLOBAL lrotate ; [1]
+ GLOBAL greet ; [1]
+ GLOBAL asmstr ; [2]
+ GLOBAL textptr ; [2]
+ GLOBAL selfptr ; [2]
+ GLOBAL integer ; [3]
+ EXTERN printf ; [10]
+ COMMON commvar 4 ; [7]
-[SECTION .text]
+ SECTION .text
; prototype: long lrotate(long x, int num);
lrotate: ; [1]
@@ -60,7 +60,7 @@ greet mov eax,[integer] ; [14]
add esp,16
ret
-[SECTION .data]
+ SECTION .data
; a string
asmstr db 'hello, world', 0 ; [2]
@@ -74,7 +74,7 @@ localptr dd localint ; [5] [17]
textptr dd greet ; [15]
selfptr dd selfptr ; [16]
-[SECTION .bss]
+ SECTION .bss
; an integer
integer resd 1 ; [3]