SPRUI03E June 2015 – January 2023
Define Tab Size
.tab size
The .tab directive defines the tab size. Tabs encountered in the source input are translated to size character spaces in the listing. The default tab size is eight spaces.
In this example, each of the lines of code following a .tab statement consists of a single tab character followed by an NOP instruction.
Source file:
; default tab size
NOP
NOP
NOP
.tab 4
NOP
NOP
NOP
.tab 16
NOP
NOP
NOP
Listing file:
1 ; default tab size
2 00000000 00000000 NOP
3 00000004 00000000 NOP
4 00000008 00000000 NOP
5 .tab4
7 0000000c 00000000 NOP
8 00000010 00000000 NOP
9 00000014 00000000 NOP
10 .tab 16
12 00000018 00000000 NOP
13 0000001c 00000000 NOP
14 00000020 00000000 NOP