@@ -158,45 +158,45 @@ The above program adds the numbers 0x05 and 0x03 together, and then loops back t
158
158
| BMI_DIR | 0x23 | Direct | N==SET |
159
159
| BMI_IND | 0x24 | Indirect | N==SET |
160
160
161
- | OPCODE | Desc |
162
- | ---------- | ---------------------------------------------------------------------------------- |
163
- | NOP | No Operation |
164
- | LDA_IMM | Load A with immediate operand data |
165
- | LDA_DIR | Load A with the data stored at the operand address |
166
- | STA_DIR | Store A at the operand address |
167
- | STA_IND | Store A at the address contained at the operand address |
168
- | ADD_IMM | Add the immediate operand data to A |
169
- | ADD_DIR | Add the data stored at the operand address to A |
170
- | SUB_IMM | Subtract the immediate operand data from A |
171
- | SUB_DIR | Subtract the data stored at the operand address from A |
172
- | AND_IMM | And the immediate operand data with A |
173
- | AND_DIR | And the data stored at the operand address with A |
174
- | OR_IMM | Or the immediate operand data with A |
175
- | OR_DIR | Or the data stored at the operand address with A |
176
- | XOR_IMM | Xor the immediate operand data with A |
177
- | XOR_DIR | Xor the data stored at the operand address with A |
178
- | LSL_IMM | Logical shift A left by the immediate operand data |
179
- | LSL_DIR | Logical shift A left by the data stored at the operand address |
180
- | LSR_IMM | Logical shift A right by the immediate operand data |
181
- | LSR_DIR | Logical shift A right by the data stored at the operand address |
182
- | ASL_IMM | Arithmetic shift A left by the immediate operand data |
183
- | ASL_DIR | Arithmetic shift A left by the data stored at the operand address |
184
- | ASR_IMM | Arithmetic shift A right by the immediate operand data |
185
- | ASR_DIR | Arithmetic shift A right by the data stored at the operand address |
186
- | RSL_IMM | Rotate A left by the immediate operand |
187
- | RSL_DIR | Rotate A left by the data stored at the operand address |
188
- | RSR_IMM | Rotate A right by the immediate operand data |
189
- | RSR_DIR | Rotate A right by the data stored at the operand address |
190
- | JMP_DIR | Jump PC to the address specified by the operand |
191
- | JMP_IND | Jump PC to the address stored at the operand address |
192
- | BNE_DIR | Jump PC (if ALU z flag is clear) to the address specified by the operand |
193
- | BNE_IND | Jump PC (if ALU z flag is clear) to the address stored at the operand address |
194
- | BEQ_DIR | Jump PC (if ALU z flag is set) to the address specified by the operand |
195
- | BEQ_IND | Jump PC (if ALU z flag is set) to the address stored at the operand address |
196
- | BPL_DIR | Jump PC (if ALU n flag is clear) to the address specified by the operand |
197
- | BPL_IND | Jump PC (if ALU n flag is clear) to the address stored at the operand address |
198
- | BMI_DIR | Jump PC (if ALU n flag is set) to the address specified by the operand |
199
- | BMI_IND | Jump PC (if ALU n flag is set) to the address stored at the operand address |
161
+ | OPCODE | Desc |
162
+ | ---------- | ---------------------------------------------------------------|
163
+ | NOP | No Operation |
164
+ | LDA_IMM | Load A with immediate operand data |
165
+ | LDA_DIR | Load A with the data stored at the operand addr |
166
+ | STA_DIR | Store A at the operand addr |
167
+ | STA_IND | Store A at the addr contained at the operand addr |
168
+ | ADD_IMM | Add the immediate operand data to A |
169
+ | ADD_DIR | Add the data stored at the operand addr to A |
170
+ | SUB_IMM | Subtract the immediate operand data from A |
171
+ | SUB_DIR | Subtract the data stored at the operand addr from A |
172
+ | AND_IMM | And the immediate operand data with A |
173
+ | AND_DIR | And the data stored at the operand addr with A |
174
+ | OR_IMM | Or the immediate operand data with A |
175
+ | OR_DIR | Or the data stored at the operand addr with A |
176
+ | XOR_IMM | Xor the immediate operand data with A |
177
+ | XOR_DIR | Xor the data stored at the operand addr with A |
178
+ | LSL_IMM | Logical shift A left by the immediate operand data |
179
+ | LSL_DIR | Logical shift A left by the data at the operand addr |
180
+ | LSR_IMM | Logical shift A right by the immediate operand data |
181
+ | LSR_DIR | Logical shift A right by the data at the operand addr |
182
+ | ASL_IMM | Arithmetic shift A left by the immediate operand data |
183
+ | ASL_DIR | Arithmetic shift A left by the data at the operand addr |
184
+ | ASR_IMM | Arithmetic shift A right by the immediate operand data |
185
+ | ASR_DIR | Arithmetic shift A right by the data at the operand addr |
186
+ | RSL_IMM | Rotate A left by the immediate operand |
187
+ | RSL_DIR | Rotate A left by the data stored at the operand addr |
188
+ | RSR_IMM | Rotate A right by the immediate operand data |
189
+ | RSR_DIR | Rotate A right by the data stored at the operand addr |
190
+ | JMP_DIR | Jump PC to the operand addr |
191
+ | JMP_IND | Jump PC to the addr stored at the operand addr |
192
+ | BNE_DIR | Jump PC (if Z is clear) to the operand addr |
193
+ | BNE_IND | Jump PC (if Z is clear) to the addr stored at the operand addr |
194
+ | BEQ_DIR | Jump PC (if Z is set) to the operand addr |
195
+ | BEQ_IND | Jump PC (if Z is set) to the addr stored at the operand addr |
196
+ | BPL_DIR | Jump PC (if N is clear) to the operand addr |
197
+ | BPL_IND | Jump PC (if N is clear) to the addr stored at the operand addr |
198
+ | BMI_DIR | Jump PC (if N is set) to the operand addr |
199
+ | BMI_IND | Jump PC (if N is set) to the addr stored at the operand addr |
200
200
201
201
### DFT and Extra Features
202
202
0 commit comments