SLAU131Y October 2004 – June 2021
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 0000 4303 NOP
3 0002 4303 NOP
4 0004 4303 NOP
5
7 0006 4303 NOP
8 0008 4303 NOP
9 000a 4303 NOP
10
12 000c 4303 NOP
13 000e 4303 NOP
14 0010 4303 NOP