24.11.2014 Views

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>FORTRAN</strong> Statements<br />

2.34 END MAP Statement<br />

END MAP<br />

The END MAP statement is used in conjunction with the MAP declarative statement. The END MAP<br />

statement marks the end of a MAP structure. The following example maps out a 4-byte integer on an Intel<br />

80x86-based processor.<br />

Example:<br />

STRUCTURE /MAPINT/<br />

UNION<br />

MAP<br />

INTEGER*4 LONG<br />

END MAP<br />

MAP<br />

INTEGER*2 LO_WORD<br />

INTEGER*2 HI_WORD<br />

END MAP<br />

MAP<br />

INTEGER*1 BYTE_0<br />

INTEGER*1 BYTE_1<br />

INTEGER*1 BYTE_2<br />

INTEGER*1 BYTE_3<br />

END MAP<br />

END UNION<br />

END STRUCTURE<br />

RECORD /MAPINT/ I<br />

I%LONG = ’01020304’x<br />

PRINT ’(2Z4)’, I%LO_WORD, I%HI_WORD<br />

END<br />

For more information, see the chapter entitled "Structures, Unions and Records" on page 167.<br />

END MAP Statement 65

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!