Purpose: | To find a character or skip characters in a character string | ||||||
Format: | opcode char.rb, len.rw, addr.ab | ||||||
Operation: |
|
||||||
Condition Codes: |
N <- 0; Z <- R0 EQL 0; V <- 0; C <- 0; |
||||||
Exceptions: | None | ||||||
Opcodes: |
|
||||||
Description: | The character operand is compared with the bytes of the string specified by the length operand and the address operand. Comparison continues until equality is detected for the LOCC instruction or inequality for the SKPC instruction or until all bytes of the string have been compared. If equality is detected for the LOCC instruction, the condition code Z is cleared, otherwise it is set. If inequality is detected for the SKPC instruction, the condition code Z is cleared, otherwise it is set. | ||||||
Notes: |
|