Flashcards
Assembly
Flashcards do conjunto (11)
- 1INPCopy the value from the "in box" onto the accumulator (calculator).
- 2STAStore the contents of the accumulator (calculator) to the mailbox of the given address. Note: the contents of the accumulator are not changed.
- 3LDALoad the contents of the given mailbox onto the accumulator (calculator). Note: the contents of the mailbox are not changed.
- 4ADDAdd the contents of the given mailbox onto the accumulator (calculator). Note: the contents of the mailbox are not changed, and the actions of the accumulator are not defined for add instructions that cause sums larger than 3 digits.
- 5SUBSubtract the contents of the given mailbox from the accumulator (calculator). Note: the contents of the mailbox are not changed, and the actions of the accumulator are not defined for subtract instructions that cause negative results
- 6OUTCopy the value from the accumulator (calculator) to the "out box". Note: the contents of the accumulator are not changed.
- 7HLTEnds the program
- 8BRASet the contents of the accumulator (calculator) to the given address. Note: since the program is stored in memory, data and program instructions all have the same address/location format.
- 9BRZIf the contents of the accumulator (calculator) are 000, the PC (program counter) will be set to the given address. Note: since the program is stored in memory, data and program instructions all have the same address/location format.
- 10BRPIf the contents of the accumulator (calculator) are 000 or positive (i.e. the negative flag is not set), the PC (program counter) will be set to the given address. Note: since the program is stored in memory, data and program instructions all have the same address/location format.
- 11DATWhen compiled, a program converts each instruction into a three-digit code. These codes are placed in sequential mailboxes. Instead of a program component, this instruction will reserve the next mailbox for data storage.
Informações
- Descrição
- GCSE Computing FlashCards sobre Assembly, criado por Chris Pugh em 24-03-2021.
- Criado por
- Chris Pugh
- Visualizações
- 0
- Avaliação