English
Language : 

45111 Datasheet, PDF (85/184 Pages) List of Unclassifed Manufacturers – 14-DAY MONEY BACK GUARANTEE
9 Upgrading Existing Code for SASM
9 Upgrading Existing Code for SASM
This chapter describes the most common changes that need to be made to use existing code for the
Parallax Assembler with the SASM assembler.
• Add an IRC_CAL directive to all existing projects, usually below the DEVICE directives to avoid
the “no IRC_CAL” warning. If you don’t intend to use the internal RC oscillator, use the
IRC_SLOW or IRC_FAST rather than the IRC_4MHZ option. The IRC_4MHZ option always
increases the download time since the SX-Key needs to run special calibration routines.
• Add a FREQ directive to all existing projects to avoid the “no FREQ” warning.
• Replace STACKX_OPTIONX by either STACKX or OPTIONX in projects for SX20 or SX28 devices.
No matter which directive you use, both the stack and the option register will be extended to 8-bits;
there is no need to specify both. For SX48/52 devices use of STACKX or OPTIONX will cause a
warning because these devices have these options always on by default.
• Replace FEEDBACKOFF with IFBD when used in the source code.
• Replace SLEEPCLOCK with SLEEPCLK when used in source code for the SX48/52.
• Replace DRT18MS with WDRT184, DRT960MS with WDRT960, DRT60MS with WDRT60, and
DRT60US with WDRT006 when used in source code for the SX48/52.
• Add a LIST Q = 37 directive at the beginning if the source code to suppress “Literal truncated…”
warnings.
• Modify any user-defined words that are reserved words in SASM.
• Add equates for Parallax reserved words that are not reserved in SASM if necessary.
• Add an OSCxxx directive to each project when there is none in the original code. SASM assumes OSCRC by
default where the Parallax Assembler assumes an OSCHS2 instead. The SASM assembler will issue a
warning message when it does not find an OSCxxx directive in the source code.
SX-Key/Blitz Development System Manual 2.0 • Parallax, Inc. • Page 85