|ARM Technical Support Knowledge Articles|
Applies to: A51 Macro Assembler
Information in this article applies to:
When programming in A51, I have noticed that tab characters (0x09) within a single quote in a DB statement are always expanded to space characters (0x20). How do I force the assembler to keep a tab character as it is?
As an example,
CR EQU 13 LF EQU 10 DB '01 Test 0', CR, LF ; TAB TAB
In the above statement, tab characters (entered above the TAB comments) are expanded to space characters when the code is assembled.
If you want tab characters, you must modify your assembler source code as follows:
CR EQU 13 LF EQU 10 TAB EQU 9 DB '01', TAB, 'Test', TAB, '0', CR, LF
The code above uses constants for the tab characters and these are not expanded into spaces.
Article last edited on: 2002-03-07 00:00:00
Did you find this article helpful? Yes No
How can we improve this article?