![background image](http://html.mh-extra.com/html/hyundai/gms800/gms800_instruction-manual_2196205052.webp)
HYUNDAI MicroElectonics
48
OR1B
( Bit logical OR - 1's complement )
Function
: C
( C )
~( M.bit )
Description : Logical OR of the carry flag and 1’s complement of M.bit.
The result is left in the carry flag.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
OR1B M.bit
6B
3
5
Example
:
166 F0C5 CB6020
LDC
60H.1
167 F0C8 6B7FF0
OR1B
7FH.7
168 F0CB EB7FF0
STC
7FH.7
;~7FH.7 ^ 60H.1 -> 7FH.7
PCALL
( U-Page call )
Function
: M( SP )
PC
H
, SP
SP - 1 ,
M( SP )
PC
L
, SP
SP - 1 ,
PC
L
( upage ) PC
H
“0FFH”
Description : Call subroutine within upage.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
PCALL upage
4F
2
6
Example :
365 F195 4F00
PCALL
DELAY
; USE 2 BYTE
366 F197 3B00FF
CALL
DELAY
; USE 3 BYTE
367
;
368
;
369
ORG
0FF00H
; PCALL AREA ADDRESS
370 FF00 FF
DELAY:
NOP
371 FF01 FF
NOP
372 FF02 6F
RET