Download Selectron LD-007 Programming instructions
Transcript
Appendix B Programming Instructions Name Mnemonic Symbol Function ONE DIGIT SHIFT LEFT (@)SLD(74) Operand Data Areas Shifts all data, between the starting word (St) and ending word (E), one digit (four bits) to the left, writing zero into the rightmost digit of the starting word. St and E must be in the same data area. SLD(74) St E St St/E: IR HR AR LR DM 0 St + 1 E ONE DIGIT SHIFT RIGHT (@)SRD(75) Shifts all data, between starting word (St) and ending word (E), one digit (four bits) to the right, writing zero into the leftmost digit of the ending word. St and E must be in the same data area. SRD(75) E St St/E: IR HR AR LR DM E E–1 0 4-TO-16 DECODER (@)MLPX(76) St Converts up to four hexadecimal digits in the source word (S), into decimal values from 0 to 15, and turns ON the corresponding bit(s) in the result word(s) (R). There is one result word for each converted digit. Digits to be converted are designated by Di. (The rightmost digit specifies the first digit. The next digit to the left gives the number of digits to be converted minus 1. The two leftmost digits are not used.) MLPX(76) S Di R S S: IR SR HR AR LR TC DM Di: IR HR AR LR TC DM # R: IR HR AR LR DM S: IR SR HR AR LR TC DM R: IR HR AR LR DM Di: IR HR AR LR TC DM # 0 to F R 15 16-TO-4 ENCODER (@)DMPX(77) 00 Determines the position of the leftmost ON bit in the source word(s) (starting word: S) and turns ON the corresponding bit(s) in the specified digit of the result word (R). One digit is used for each source word. Digits to receive the converted values are designated by Di. (The rightmost digit specifies the first digit. The next digit to left gives the number of words to be converted minus 1. The two leftmost digits are not used.) DMPX(77) S R Di 15 00 S R 0 to F Data Areas These footnote tables show the actual ranges of all data areas. Bit numbers are provided (except for DM and TC areas); remove the rightmost two digits for word numbers. IR 00000 to 23515 306 SR 23600 to 25507 HR HR 0000 to 9915 TR TR 0 to 7 AR AR 0000 to 2715 LR LR 0000 to 6315 TC TC 000 to 511 DM Read/Wr: DM 0000 to DM 0999 Rd only: DM 1000 to DM 1999 # 0000 to 9999 or 0000 to FFFF