home *** CD-ROM | disk | FTP | other *** search
- page ,132
- title GET_ADDR Return the address of a data object
-
- ;***************************************************************
- ; Call:
- ;
- ; integer get_addr(data_object)
- ; data_object is any legitimate data item in Fortran-386
- ;
- ;***************************************************************
- ;
- ; Fortran has no pointer type, or offset operator. This function
- ; acts as an offset operator for those cases in which the address
- ; of a Fortran data object must be assigend to a Fortran variable
-
- page
- assume cs:codeseg
-
- codeseg segment dword er public use32
-
- align 4
-
- public _get_addr_
-
-
- _get_addr_ proc near
-
- push ebp ; Set up frame.
- mov ebp,esp
- mov eax,[ebp+8] ; address into eax
- pop ebp ; Restore old frame.
-
- ret
-
- _get_addr_ endp
-
- codeseg ends
- end
-