summaryrefslogtreecommitdiff
path: root/test/cofftest.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/cofftest.asm
parentea8382740dbe5e1607742d0a7c7c139dffcc5ae5 (diff)
downloadnasm-d7ed89eac9580f280fe0017b22c8e38ca75ed8e3.tar.gz
NASM 0.94nasm-0.94
Diffstat (limited to 'test/cofftest.asm')
-rw-r--r--test/cofftest.asm24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/cofftest.asm b/test/cofftest.asm
index bb843a15..88044c00 100644
--- a/test/cofftest.asm
+++ b/test/cofftest.asm
@@ -22,17 +22,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]
@@ -59,7 +59,7 @@ _greet mov eax,[_integer] ; [14]
add esp,16
ret
-[SECTION .data]
+ SECTION .data
; a string
_asmstr db 'hello, world', 0 ; [2]
@@ -73,7 +73,7 @@ localptr dd localint ; [5] [17]
_textptr dd _greet ; [15]
_selfptr dd _selfptr ; [16]
-[SECTION .bss]
+ SECTION .bss
; an integer
_integer resd 1 ; [3]