Fichas
Assembly Language
Fichas del conjunto (22)
- 1Assembly CodeMnemonics represent operation codes and addresses
- 2AssemblerTranslates assembly language program into machine code
- 3Little Man ComputerEnter and test assembly language programs
- 4ADDAdd contents of memory address to ACC
- 5SUBSubtract contents of memory address from ACC
- 6STAStore value in ACC in memory address given
- 7LDALoad ACC with contents of memory address given
- 8BRABranch using address given as address of next instruction
- 9BRZBranch to address given if ACC is zero
- 10BRPBranch to address given if ACC is zero or positive
- 11INPInput into ACC
- 12OUTOutput contents of ACC
- 13HLTStops execution of program
- 14DATIndicate location that contains data
- 15Data Transfer and Arithmetic Operations: Input three numbers x, y and z, calculate and output the value of x + y - zINP
STA x
INP
STA y
INP
STA z
LDA x
ADD y
SUB z
OUT
HLT
x DAT
y DAT
z DAT - 16Branch Instructions: Input two numbers num1 and num2, output the largerINP
STA num1
INP
STA num2
LDA num1
SUB num2
BRP branch
LDA num2
OUT num2
HLT
branch LDA num1
OUT num1
HLT
num1 DAT
num2 DAT - 17In a machine code, opcode is stored in 6 bits and operand is stored in 12 bits, what is the maximum number of operations in machine's instruction set?2^6
- 18Operation CodeBinary digits representing a basic operation and a 2 digit code representing addressing mode
- 19Immediate AddressingOperand is actual value to be operated on
- 20Direct AddressingOperand holds memory address of value to be operated on
- 21Indirect AddressingOperand is location holding address of value to be operated on
- 22Indexed AddressingAddress of operand found by adding contents of index register.
Información
- Descripción
- A-Level (Software Development) Flashcards Comp Sci Fichas sobre Assembly Language, creado por Holly Scott el 06/05/2018.
- Creado por
- Holly Scott
- Visitas
- 1
- Valoración