15
LatticeMico
8
Microcontroller
Lattice Semiconductor
User’s Guide
Restore Zero and Carry Flags from shadow locations
Return from interrupt. In addition to popping the call stack, the carry and zero flags are restored from shadow loca-
tions.
IMPORT Rd, Port#
Rd = Value from Port (Port#)
Read value from port number (Port#) and write into register Rd. Port # can be 0-31.
IMPORTI Rd, Rb
Rd = Value from Port # in Register Rb
Indirect read of port. Value is read from port number in register Rb. Port number can be 0-255.
EXPORT Rd, Port#
Port Value(Port#) = Rd
Output value of Register D to Port#. Port# can be 0-31.
EXPORTI Rd, Rb
Port Value(Rb) = Rd
Output value of Register D to Port# designated by Register B. Port# can be 0-255.
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1
1
1
1
0
Rd
Rd
Rd
Rd
Rd
P
P
P
P
P
0
0
1
CY Flag Updated
Zero Flag Updated
No
No
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1
1
1
1
0
Rd
Rd
Rd
Rd
Rd
Rb
Rb
Rb
Rb
Rb
0
1
1
CY Flag Updated
Zero Flag Updated
No
No
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1
1
1
1
0
Rd
Rd
Rd
Rd
Rd
P
P
P
P
P
0
0
0
CY Flag Updated
Zero Flag Updated
No
No
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1
1
1
1
0
Rd
Rd
Rd
Rd
Rd
Rb
Rb
Rb
Rb
Rb
0
1
0
CY Flag Updated
Zero Flag Updated
No
No