Home | History | Annotate | Download | only in tests
      1 module thismodule
      2 module $thismodule
      3 global foo:export
      4 global bar:export proc
      5 global bar2:export function
      6 global baz:export data
      7 global baz2:export object
      8 extern extvar:import
      9 extern func:proc
     10 extern farfunc:far
     11 library alib.rdl
     12 common cvar 16:32
     13 
     14 foo:
     15 dd 0
     16 bar:
     17 dd 0
     18 bar2:
     19 dd 0
     20 call func
     21 call farfunc		; generates a near call!
     22 call far farfunc
     23 
     24 mov ax, seg farfunc
     25 mov ax, farfunc
     26 mov eax, farfunc
     27 
     28 mov eax, cvar
     29 
     30 section .data
     31 baz:
     32 dd 0
     33 baz2:
     34 dd 0
     35 
     36 section .bss
     37 resb 4
     38 
     39 ;section a null
     40 
     41 section b text
     42 dd 0
     43 
     44 section c code
     45 dd 0
     46 
     47 section d data
     48 dd 0
     49 
     50 section e comment,5		; after comma is reserved value
     51 dd 0
     52 
     53 section f lcomment
     54 dd 0
     55 
     56 section g pcomment,8
     57 dd 0
     58 
     59 section h symdebug
     60 dd 0
     61 
     62 section i linedebug
     63 dd 0
     64