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.

PCP Assembly Language3−31.DUPC / .ENDMSyntax[label].DUPC formal_arg,string...ENDMDescriptionWith the .DUPC and .ENDM directives (Duplicate Sequence withCharacters) you can repeat a block of source statements for each characterwithin string. For each character in the string, the formal_arg parameterwithin the block is replaced with that character If the string is empty, thenthe block is skipped.If you specify label, it gets the value of the location counter at the start ofthe .DUPC directive processing.ExampleConsider the following source input statements,.DUPC VALUE,’123’.BYTE VALUE.ENDMThis is expanded as follows:.BYTE 1.BYTE 2.BYTE 3Related information.DUP (Duplicate Sequence of Source Lines),.DUPA (Duplicate Sequence with Arguments),.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!