Zero Low Accumulator and Load High Accumulator With Rounding
ZALR
7-197
Assembly Language Instructions
Cycles for a Repeat (RPT) Execution of a ZALR Instruction
Program
Operand
ROM
DARAM SARAM External
DARAM n n n n+p
SARAM n n n, n+1
†
n+p
External n+nd n+nd n+nd n+1+p+nd
†
If the operand and the code are in the same SARAM block
Example 1 ZALR DAT3 ;(DP = 32: addresses 1000h–107Fh)
Before Instruction After Instruction
Data Memory Data Memory
1003h 3F01h 1003h 3F01h
ACC X 77FFFFh ACC X 3F018000h
CC
Example 2 ZALR *–,AR4
Before Instruction After Instruction
ARP 7 ARP 4
AR7 0FF00h AR7 0FEFFh
Data Memory Data Memory
0FF00h 0E0E0h 0FF00h 0E0E0h
ACC X 107777h ACC X 0E0E08000h
CC