6.65.1 Description
Load one byte indirect from data space to register and toggles bits in the data space specified by the register. The instruction can only be used towards SRAM.
The data location is pointed to by the Z (16-bit) Pointer Register in the Register File. Memory access is limited to the current data segment of 64 KB. To access another data segment in devices with more than 64 KB data space, the RAMPZ in the register in the I/O area has to be changed.
The Z-Pointer Register is left unchanged by the operation. This instruction is especially suited for changing status bits stored in SRAM.
Operation: | |||
(i) |
DS(Z) ← Rd ⊕ DS(Z), Rd ← DS(Z) | ||
Syntax: |
Operands: |
Program Counter: | |
(i) |
LAT Z,Rd |
0 ≤ d ≤ 31 |
PC ← PC + 1 |
16-bit Opcode:
1001 | 001r | rrrr | 0111 |