From d7ed89eac9580f280fe0017b22c8e38ca75ed8e3 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 30 Apr 2002 20:52:08 +0000 Subject: NASM 0.94 --- test/elftest.asm | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'test/elftest.asm') 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] -- cgit v1.2.3