Input
Assembly Unit
-DefLabel
None
None
Improves support for data allocation directives. On passing this option, the data directives (not associated to any label) get associated with previous defined labels (if exists). This inhibits the emission of temporary variables ( VARx) by assembler.
The following listing shows the example for the -DefLabel.
MySection: SECTION TTab_TIT_45: ; Modo 5 DC.B $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FA,$90,$20,$00,$01,$4F,$FF ,$FB,$FF,$FF,$FF,$FF,$FC DC.B $C1,$FF,$FF,$FF,$FF,$FF,$FF,$F7,$64,$88,$00,$14,$BF,$FF ,$F5,$FF,$EF,$B8,$3F,$FE DC.B 5 DC.W 3 mainLoop: RTS With -DefLabel option OFF: Output: 9-VAR00001 0 14 LOCAL FUNC 9 (MySection) 10-VAR00002 14 14 LOCAL FUNC 9 (MySection) 11-VAR00003 28 1 LOCAL FUNC 9 (MySection) 12-VAR00004 29 3 LOCAL FUNC 9 (MySection) With -DefLabel option ON: Output: 9-TTab_TIT_45 0 29 LOCAL FUNC 9 (MySection) 10-VAR00001 29 3 LOCAL FUNC 9 (MySection)
The input file when assembled with option -DefLabel, allocates the DC.B directives to symbol TTab_TIT_45 and DC.W to dummy variable VAR00001.