|
![]() |
|
|
![]() |
|
|
![]() |
|
|
![]() |
|
|
![]() |
| Zero flag | Carry flag | |
| SEC |
|
|
| LDA #20 SBC #17 |
|
|
| LDX #2 DEX DEX |
|
|
"The CPU (Central 
) communicates with the memory via two buses. These are simply sets of wires that can hold 1s or 0s. The
bus allows the CPU to specify which location in memory it wants to select, and the
bus allows it to specify the number to be written to or read from that location. There is also a small set of wires called the
bus that specifies whether a memory operation is a read or a write."
| True | False | ||
| When an operation gives a result of 0, the Zero flag is cleared to 0. | ![]() |
||
| There are some flags apart from the Zero and Carry flags. | ![]() |
||
| There are some instructions that do not affect the flags. | ![]() |
||
| The insrtuction BCS performs the jump if the carry holds 0. | ![]() |
Arithmetiser Adder unit Arithmetic register Addition register Accumulator
|
![]() |
I only I and II only II and III only. II only. I, II and III.
|
![]() |
LDA #70 TAX TXY LDA #70 TAX TYA LDX #70 TXA TAY LDX #70 TAX TAY LDY #70 TAX TAY
|
![]() |
CLC
LDA #240
ADC #20
would leave
A holding 260 and C unchanged. A holding 3 and C set to 1 A holding 3 and C cleared to 0. A holding 4 and C set to 1. A holding 4 and C cleared to 0.
|
![]() |
The computer translates all programs written in high-level languages such as JavaScript into Assembly language before running them. Assembly language is a code that represents the signals stored in computer memory. All instructions in an Assembly language program are translated into numbers. The computer has no way of distinguishing between the numbers in memory that represent the program and the numbers that represent data. An Assembler is a program that translates Assembly language into numbers.
|
![]() |