"UNCONNECTED" OPERATIONS


Back to:
index table

NO OPERATION instruction

Coding:
bin: ....0000 ........
hex: .0 ..
(symbol "." shows, that this digit can have any value)

Description:
Nothing will be done. This instruction is often used to replace unwanted command in a program.

Examples:
0000\
E0EA/
both commands only "fills place" in a program and do nothing

Back to:
index table top


HALT instruction

Coding:
bin: ....1111 ........
hex: .F ..
(sumbol "." shows, that this digit can have any value)

Description:
This instruction stops program executions

Examples:
0F00\
EF97/
both commands finish the execution of the program

Back to:
index table top


MOVE instruction

Coding:
bin: MOD0001 OP1OP2
hex: MOD1 OP1OP2
(MOD - modifier: affects on operands type - word/byte, or maybe specifies "short constant" (see examples); OP1 and OP2 - operands)

Description:
OP1 ==> OP2
This instruction gets OP1 and puts it into OP2. Flags N and Z are set according to the operand.

Examples:
0120 R2 ==> R0 the value of the word from R2 will be copied to R0
C120 R2b ==> R0b the value of the low byte from R2 will be copied to R0
8120 R2b ==> R0 the value of the low byte from R2 will be copied to R0; the high byte of R0 will be 00 in the case R2b<80 and FF otherwise (arithmetic sign extension)
0141 (R0) ==> R1 the value from memory, which address is stored in register R0, will be copied to R1
01D2
0080
80 ==> R2 constant 80, arranged in the next word of memory, will be copied to R2
C1D2
0030
30b ==> R2b byte value 30, arranged in the next word of memory, will replace low byte of R2
2113 1 ==> R3 "short constant" 1 (OP1 number is a constant itself!) will be copied to R3. Modifier=2 for positive numbers
3123 2 ==> R3 "short constant" -2 will be copied to R3. Modifier=3 for negative numbers

Back to:
index table top