as: MIPS insn
1
1 9.27.8 Directive to mark data as an instruction
1 -----------------------------------------------
1
1 The '.insn' directive tells 'as' that the following data is actually
1 instructions. This makes a difference in MIPS 16 and microMIPS modes:
1 when loading the address of a label which precedes instructions, 'as'
1 automatically adds 1 to the value, so that jumping to the loaded address
1 will do the right thing.
1
1 The '.global' and '.globl' directives supported by 'as' will by
1 default mark the symbol as pointing to a region of data not code. This
1 means that, for example, any instructions following such a symbol will
1 not be disassembled by 'objdump' as it will regard them as data. To
1 change this behavior an optional section name can be placed after the
1 symbol name in the '.global' directive. If this section exists and is
1 known to be a code section, then the symbol will be marked as pointing
1 at code not data. Ie the syntax for the directive is:
1
1 '.global SYMBOL[ SECTION][, SYMBOL[ SECTION]] ...',
1
1 Here is a short example:
1
1 .global foo .text, bar, baz .data
1 foo:
1 nop
1 bar:
1 .word 0x0
1 baz:
1 .word 0x1
1
1