summaryrefslogtreecommitdiff
path: root/test/aouttest.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/aouttest.asm
parentea8382740dbe5e1607742d0a7c7c139dffcc5ae5 (diff)
downloadnasm-d7ed89eac9580f280fe0017b22c8e38ca75ed8e3.tar.gz
NASM 0.94nasm-0.94
Diffstat (limited to 'test/aouttest.asm')
-rw-r--r--test/aouttest.asm26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/aouttest.asm b/test/aouttest.asm
index c52f1120..a11824f6 100644
--- a/test/aouttest.asm
+++ b/test/aouttest.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]
@@ -53,14 +53,14 @@ _greet mov eax,[_integer] ; [14]
mov [localint],eax ; [14]
push dword [_commvar]
mov eax,[localptr] ; [13]
- push dword [eax] ;
+ push dword [eax]
push dword [_integer] ; [1] [14]
push dword _printfstr ; [13]
call _printf ; [11]
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]