Renesas Technology, Tools FAQs
Last Updated: July 22, 2003
Document Number: 03072224_e
Q.
Why errors are generated with structured language commands which use operators *, /, or % ?
A.
To use operators *, /, or % in structured language commands of SRA74, it is necessary to call up the subroutines written in the
sra74.a74 library source file provided with SRA74.
Here following, it is explained how to program with operators *, /, or %. The name of the program using the structured language
commands is struct.a74.
Note!
If the stack area is set to one page, see "How to use multiplication/division subroutines for one page stacks".
Call up the subroutine.
Write the following lines into the source file where the multiplication and division operations of the structured language
commands are written.
--------------------
.EXT .mult_8
.EXT .div_8
.EXT .mod_8
--------------------
Label name Function
.mult_8 Subroutine that performs multiplication (*).
.div_8 Subroutine that performs division (/).
.mod_8 Subroutine that performs modulo operations (%).
1.
Assemble sra74.a74.
Assemble sra74.a74 and generate a relocatable file.
>sra74 sra74
2.
Assemble the source program.
Assemble the struct.a74 source program and generate a relocatable file.
>sra74 struct
3.
Link the relocatable file of the source program and sra74.a74.
Link struct.a74 and sra74.a74, and generate a machine language file (struct.hex file).
>link74 struct sra74,,,-Fstruct
4.
Top of Page | Back to Previous Page
Terms of Use Privacy Policy
(C)2004 Renesas Technology Corp., All Rights Reserved.
Kommentare zu diesen Handbüchern