13.07.2015 Views

pcp_reference_guide_v2.5 - Tasking

pcp_reference_guide_v2.5 - Tasking

pcp_reference_guide_v2.5 - Tasking

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3−40PCP Reference Manual.FRACT/.SFRACTSyntax[label:] .FRACTexpression[,expression]...[label:] .SFRACT expression[,expression]...DescriptionWith the .FRACT or .SFRACT directive the assembler allocates andinitializes one word of memory (32 bits) or a halfword (16 bits) for eachargument. Use commas to separate multiple arguments.An expression can be:• a fractional fixed point expression (range [−1, +1>)• NULL (indicated by two adjacent commas: ,,)ASSEMBLY LANGUAGEMultiple arguments are stored in successive address locations in sets oftwo bytes. If an argument is NULL its corresponding address location isfilled with zeros.If the evaluated argument is out of the range [−1, +1> , the assemblerissues a warning and saturates the fractional value.ExampleFRCT: .FRACT 0.1,0.2,0.3SFRCT: .SFRACT 0.1,0.2,0.3Related information.SPACE (Define storage).ACCUM (Define 64−bit constant fraction in 18+46 bits format )

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!