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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3−30PCP Reference Manual.DUPA / .ENDMSyntax[label].DUPA formal_arg,argument[,argument]......ENDMDescriptionWith the .DUPA and .ENDM directives (Duplicate Sequence withArguments) you can repeat a block of source statements for eachargument. For each repetition, every occurrence of the formal_argparameter within the block is replaced with each succeeding argumentstring. If an argument includes an embedded blank or otherassembler−significant character, it must be enclosed with single quotes.ASSEMBLY LANGUAGEIf you specify label, it gets the value of the location counter at the start ofthe .DUPA directive processing.ExampleConsider the following source input statements,.DUPA VALUE,12,,32,34.BYTE VALUE.ENDMThis is expanded as follows:.BYTE 12.BYTE VALUE ; results in a warning.BYTE 32.BYTE 34The second statement results in a warning of the assembler that the localsymbol VALUE is not defined in this module and is made external.Related information.DUP (Duplicate Sequence of Source Lines),.DUPC (Duplicate Sequence with Characters),.DUPF (Duplicate Sequence in Loop),.MACRO (Define Macro)

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

Saved successfully!

Ooh no, something went wrong!