SLAU131Y October 2004 – June 2021
Eject Page in Listing
.page
The .page directive produces a page eject in the listing file. The .page directive is not printed in the source listing, but the assembler increments the line counter when it encounters the .page directive. Using the .page directive to divide the source listing into logical divisions improves program readability.
This example shows how the .page directive causes the assembler to begin a new page of the source listing.
Source file:
Source file (generic)
.title "**** Page Directive Example ****"
; .
; .
; .
.page
Listing file:
MSP430 Assembler PC vx.x.x Day Time Year
Tools Copyright (c) 2003-2011 Texas Instruments Incorporated
**** Page Directive Example **** PAGE 1
2 ; .
3 ; .
4 ; .
MSP430 Assembler PC vx.x.x Day Time Year
Tools Copyright (c) 2003-2011 Texas Instruments Incorporated
**** Page Directive Example ****