13.07.2015 Views

[Instruction] Contents

[Instruction] Contents

[Instruction] Contents

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.

Advanced Function <strong>Instruction</strong>FUN 60 P→ASCASCII CONVERSIONFUN 60 P→ASCS : Alphanumerics to be converted into ASCII codeD : Starting register storing ASCII resultsOperandRangeSWY WM WS TMR CTR HR OR SR ROR DR AlphanumericWY0∣WY240WM0∣WM1896WS0∣WS984T0∣T255C0∣C255R0∣R3839R3904∣R3967R3968∣R4167R5000∣R8071D0∣D4095D ○ ○ ○ ○ ○ ○ ○ ○* ○* ○1~12alphanumeric○●When conversion control "EN" = 1 or "EN↑" ( P instruction) has a transition from 0 to 1, will convertalphabets and numbers stored in S (S has a maximum of 12 alphanumeric character) into ASCII and storeit into registers starting from D. Each 2 alphanumeric characters occupy one 16-bit register.●The application of this instruction, most often, stores alphanumeric information within a program, and waitsuntil certain conditions occur, then converts this alphanumeric information into ASCII and conveys it toexternal display devices which can accept ASCII code.• The instruction at left converts the 6 alphabets-ABCDEF into ASCII then stores it into 3 successiveX0EN60P. ASCS : ABCDEFERRregisters starting from R0.D : R0SHigh ByteDLow ByteAlphabetABCDEFX0=R0 42(B) 41(A)R1 44(D) 43(C)R2 46(F) 45(E)7-40

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

Saved successfully!

Ooh no, something went wrong!