17.07.2013 Views

Manual CEPR 96 - Balogh technical center

Manual CEPR 96 - Balogh technical center

Manual CEPR 96 - Balogh technical center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

SYNTAX<br />

EXECUTION<br />

SpF/Spf<br />

HEX VALUE CONVERSION<br />

TO ASCII STRING<br />

Hexadecimal : INS,80H,Ld,DpF,Dpf,Ls,SpF,Spf.<br />

Mnemonique : STR,Ld,D,Ls,S.<br />

HEXA SOURCE<br />

Data<br />

Data<br />

Data<br />

Ls<br />

PAGE 63<br />

Manuel instructions <strong>CEPR</strong><strong>96</strong> / MRUC20 M<strong>96</strong>.40.02<br />

ASCII DESTINATION<br />

DpF/Dpf Character<br />

Character<br />

Character<br />

Character<br />

COMMENTS<br />

Convert the data from address S (SpF/Spf) to an ASCII destination table located at the<br />

address D (DpF/Dpf). Each table has a length, if all the characters of the destination<br />

table are not used, free locations are replaced by the space character (20H).<br />

If the length (Ls and/or Ld) is > 80H, addressing becomes indirect, and the command<br />

parameters must indicate the location of pointer for the length and for the table address.<br />

SYMBOLS DEFINITION LIMITS<br />

Ls Length of the source table (hexa number) or<br />

address of the pointer to the length (if > 80H)<br />

Ld Length of the destination table (ASCII) or<br />

address of the pointer to the length (if > 80H)<br />

DpF/Dpf Address of the destination table or pointer<br />

or D to the destination table address (Ld > 80H)<br />

SpF/Spf Address of the source table or pointer to the<br />

ou S source table address (Ls >80H)<br />

EXAMPLE<br />

Direct conversion of the value 100H stored at the addresses 820H and 821H to destination<br />

table of 4 characters stored at the address 810H.<br />

STR,4,810H,2,820H. (result : see below)<br />

Indirect convertion of the value pointed by the data (820H) at the address 840H with a<br />

length of 2 stored at the address 80H. The result will be stored at the address pointed by<br />

the data (810H) at the address 830H. The length (4) of the destination table is stored in<br />

the address 81H.<br />

STR,80H,830h,81H,840H. Source Destination<br />

820H 01 Conversion 810H 20H " "<br />

821H 00 811H 32H "2"<br />

812H 35H "5"<br />

100H = 256 813H 36H "6"<br />

Ld<br />

80H<br />

STR

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

Saved successfully!

Ooh no, something went wrong!