doc: remove obsolete references
[nasm.git] / rdoff / test / rdftest2.asm
blob25b8c1892e70e79cb366e4eba00bbbc948386951
1 ;; rdftest2.asm - test linkage and generation of RDOFF files
3 [SECTION .text]
4 [BITS 32]
6 [GLOBAL _farproc]
7 [EXTERN _test1proc]
8 [EXTERN localdata2]
9 [EXTERN _term]
10 _farproc:
12 mov bx,localdata2 ; [4] 0 => 66 bb 000a(+0)
13 mov eax,_term ; [3] 5 => b8 00000000(+26+0)
14 call _test1proc ; [6] A => e8 fffffff2(-40+0+31)(=ffffffe3)
16 mov eax,_farproc ; [1] => b8 00000000(+40)
17 add eax,[_fardata] ; [2] => 03 05 00000000(+20)
19 mov ebx,mybssdata ; [7] => bb 00000000(+08)
20 call myproc ; [5] => e8 00000001
21 ret
23 myproc:
24 add eax,ebx
25 ret
27 [SECTION .data]
28 [GLOBAL _fardata]
29 _fardata: dw _term ; [4]
30 _localref: dd _farproc ; [2]
32 [SECTION .bss]
33 mybssdata: resw 1