![background image](http://html.mh-extra.com/html/hyundai/gms800/gms800_instruction-manual_2196205043.webp)
Instruction Set
39
EOR1
( Bit exclusive OR )
Function
: C
( C )
⊕
⊕
⊕
⊕
( M.bit )
Description : Exclusive-OR of the carry flag and the specified bit of memory.
The results is left in the carry flag.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
EOR1 M.bit
AB
3
5
* The bit4 of the 3rd byte is set to "0".
Example
:
471 F8B9 CBC040
LDC
0C0H.2
; R02 -> CARRY
472 F8BC AB2E20
EOR1
2EH.1
473 F8BF D004
BCS
DIFE
474 F8C1 C400
LDA
#0
475 F8C3 2F02
BRA
UNIO
476 F8C5 C403
DIFE:
LDA
#3
477 F8C7 FF
UNIO:
NOP
EOR1B
( Bit exclusive OR - 1's complement )
Function
: C
( C )
⊕
⊕
⊕
⊕
~( M.bit )
Description : Exclusive-OR of the carry flag and 1's complement of the specified bit of memory.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
EOR1B M.bit
AB
3
5
* The bit4 of the 3rd byte is set to "1".
Example
:
319
M_BIT0
EQU
0,COUNT
320 C108 E4FF0B
LDM
COUNT,#0FFH
321 C10B AB0B00
EOR1B
M_BIT0
322 C10E 50E5
BCC
BYE
;IF CARRY CLEAR THEN GOTO BYE