NY6 User Manual
Ver 1.3 2019/03/28
63
ANDM m
Function: AND ACC with M of address m, and save
the result back to ACC.
Operation: ACC
← A
CC & M
Operand: m: 6-bit address of register or SRAM to
AND with, 0x0 to 0x3F
Words: 1
Cycles: 1
Operative Flags: None
Flags Affected: Z
Example:
ANDM m0
Before Instruction
ACC=0x7, [m0]=0xA
After Instruction
ACC=0x2, [m0]=0xA, Z=0
ORM m
Function : OR ACC with M of address m, and the
result is save back to ACC.
Operation :ACC ← ACC | M
Operand: m: 6-bit address of register or SRAM to
OR with, 0x0 to 0x3F
Words :
1
Cycles :
1
Operative Flags: None
Flags Affected: Z
Example :
ORM m0
Before Instruction
ACC=0x3, [m0]=0xB
After Instruction
ACC=0xB, [m0]=0xB, Z=0
MVAM m
Function: Move ACC to M of address m.
Operation: M ← A
CC
Operand: m: 6-bit address of register or SRAM to
move, 0x00 to 0x3F
Words: 1
Cycles: 1
Operative Flags: None
Flags Affected: None
Example: MVAM m0
Before Instruction
ACC=0x8
After Instruction
[m0]=0x8
MVMA m
Function: Move M of address m to ACC.
Operation: ACC
← M
Operand: m: 6-bit address of register or SRAM to
move, 0x00 to 0x3F
Words: 1
Cycles: 1
Operative Flags: None
Flags Affected: Z
Example:
MVMA m0
Before Instruction
[m0]=0x8
After Instruction
ACC=0x8