BSD-2-clause
Copyright 1996-2025 the NASM Authors; copyright (C) 1996 Simon Tatham and Julian Hall; Copyright (C) 1999 by Andrew Zabolotny; Copyright (C) 1991-1998 SciTech Software, Inc.; Copyright 1996-2010 The NASM Authors; Copyright 1998-2003, O'Reilly & Associates; Copyright (c) 1996,99 Julian Hall. All rights reserved.; Copyright (c) 2002 RET & COM Research.; Copyright (C) 1998-2000 by DooM Legacy Team.; copyright (C) 1998 John S. Fine
debian/copyright
| 1 |
%use masm |
| 2 |
|
| 3 |
global fproc, nproc |
| 4 |
|
| 5 |
bits 64 |
| 6 |
|
| 7 |
_TEXT segment |
| 8 |
|
| 9 |
fproc proc far |
| 10 |
mov eax,dword ptr foo |
| 11 |
mov rdx,offset foo |
| 12 |
mov ecx,bar[rbx] |
| 13 |
lea rsi,foo |
| 14 |
lea rsi,dword ptr foo |
| 15 |
lea rsi,[foo] |
| 16 |
lea rsi,dword [foo] |
| 17 |
mov rdi,gs:[rbx] |
| 18 |
ret |
| 19 |
fproc endp |
| 20 |
|
| 21 |
nproc proc near |
| 22 |
mov eax,dword ptr foo |
| 23 |
mov rdx,offset foo |
| 24 |
mov ecx,bar[rbx] |
| 25 |
mov rdi,[gs:foo] |
| 26 |
mov rdi,qword ptr gs:foo |
| 27 |
ret |
| 28 |
nproc endp |
| 29 |
|
| 30 |
_TEXT ends |
| 31 |
|
| 32 |
_DATA segment |
| 33 |
nxx dd 80 |
| 34 |
foo dd 100 |
| 35 |
_DATA ends |
| 36 |
|
| 37 |
segment _BSS nobits |
| 38 |
bar resd 100 |
| 39 |
xyzzy dd 64 dup (?) |
| 40 |
_BSS ends |