Misc_Data (IOM, Landme) Entities

The following example shows the BGL file format of Misc_Data (IOM, landme) entities.

;DATABASE HEADER ********************************************************
dw0001;00 world set number (not saved to file list)
.
.
ddMISC_DATA;102 MISC_DATA (iom, landme)

The following example shows how Misc_Data is used in a BGL file.

MISC_DATA:
rel_base= MISC_DATA
LATBAND_REL8960,9216,MISC_DATA_LIST_0001
EOL

MISC_DATA_LIST_0001:
OUTER_MARKER023h,07c22h,0c1h,0b40bh,180,0
MIDDLE_MARKER023h,07d22h,0c1h,0b40bh,180,0
INNER_MARKER023h,07e22h,0c1h,0b40bh,180,0
LANDME_RUNWAY_E1  023h,07c91h,0c1h,0b387h,0180h,0;Meigs 36
LANDME_RUNWAY_E2  023h,07e8fh,0c1h,0b388h,0180h,0
LANDME_RUNWAY_INFO 0,'Chicago Meigs 36              '
LANDME_RUNWAY_E1  023h,06ee9h,0c1h,09abbh,0180h,0;Midway22L
LANDME_RUNWAY_E2  023h,06c56h,0c1h,09802h,0180h,0
LANDME_RUNWAY_INFO 0,'Chicago Midway 22L            '
LANDME_RUNWAY_E1  023h,09577h,0c1h,08112h,0180h,0;O'Hare27L
LANDME_RUNWAY_E2  023h,09573h,0c1h,07a9dh,0180h,0
LANDME_RUNWAY_INFO 0,"Chicago O'Hare 27L            "
EOL

The following example shows how the entity definitions are specified.

;MISC_DATA ENTITY OPCODE DEFINITIONS -
;OpFormatDefinition
;-----------------------------------------------------------------
;4db 4;00 opcode = INNER MARKER BEACON
;db 11;01 byte count of all bytes in this entity
;db 0,0,0;02 N latitude (2 M units)
;db 0,0,0;05 E longitude (pseudo deg 24-bit)
;dw 0;08 Altitude (m)
;db 0;10 Orientation 8-bit pseudodeg
INNER_MARKER macro northhi,north,easthi,east,altitude,orient
db4
db11
dwnorth;;N latitude (2 M units)
dbnorthhi
dweast;;E longitude (24-bit pseudo)
dbeasthi
dwaltitude;;ALT (ii)m
dborient
endm

MIDDLE_MARKER macro northhi,north,easthi,east,altitude,orient
db5
db11
dwnorth;;N latitude (2 M units)
dbnorthhi
dweast;;E longitude (24-bit pseudo)
dbeasthi
dwaltitude;;ALT (ii)m
dborient
endm

OUTER_MARKER macro northhi,north,easthi,east,altitude,orient
db6
db11
dwnorth;;N latitude (2 M units)
dbnorthhi
dweast;;E longitude (24-bit pseudo)
dbeasthi
dwaltitude;;ALT (ii)m
dborient
endm

LANDME_RUNWAY_E1 macro e1nhi,e1n,e1ehi,e1e,e1alt,e1altfract
db7
db53
dwe1n;;02 end 1 N lat (2 M units)
dbe1nhi
dwe1e;;05 end 1 E lon (24-bit pseudo)
dbe1ehi
dbe1altfract;;08 end 1 ALT (.f)m
dwe1alt;;         ALT (ii)m
endm

LANDME_RUNWAY_E2 macro e2nhi,e2n,e2ehi,e2e,e2alt,e2altfract
dwe2n;;11 end 1 N lat (2 M units)
dbe2nhi
dwe2e;;14 end 1 E lon (24-bit pseudo)
dbe2ehi
dbe2altfract;;17 end 1 ALT (.f)m
dwe2alt;;       (ii)m
endm

LANDME_RUNWAY_INFO macro patdir,ident
dwpatdir;;20 pattern direction 0=left hand  1=right hand
dbident,0;;22 31-byte 0-padded asciiz approach name
;;53

endm