Академический Документы
Профессиональный Документы
Культура Документы
Page
12. All ICs except timer, RAM and ROM are from 74XXX series. 13. Clock frequency 1kHz. 14. Provision for loading program from a ROM or from hexadecimal keypad to the
Page
Page
Student ID: XX3 Opcode Instruction 00 XCHG B, [address] 01 NEG A 02 SHR B 03 ADD [address], B 04 CALL address 05 DEC A 06 MOV A, [address] 07 HLT 08 IN [address] 09 OR A, B 0A PUSH B 0B POP A 0C OUT B 0D RET 0E TEST A, [address] 0F JZ address
Student ID: XX4 Opcode Instruction 00 MOV [address], B 01 MOV B, byte 02 RCL A 03 INC B 04 HLT 05 CALL address 06 CMP B, [address] 07 IN B 08 JLE address 09 RET 0A OUT A 0B PUSHF 0C POPF 0D XOR [address], A 0E SUB B, [address] 0F XCHG A, B
Student ID: XX5 Opcode Instruction 00 JA address 01 HLT 02 CMP 03 POP [address] 04 ADD B, byte 05 NOT B 06 CALL address 07 IN A 08 MOV [address], A 09 PUSH [address] 0A XCHG [address], B 0B MOV B, Byte 0C NEG A 0D SHL B 0E OUT A 0F RET
Student ID: XX6 Student ID: XX7 Opcode Instruction Opcode Instruction 00 MOV A, byte 00 TEST A, [address] 01 DEC A 01 OUT A 02 PUSH A 02 IN B 03 IN [address] 03 JE address 04 JBE address 04 SUB B, byte 05 CMP A, B 05 PUSH [address] 06 POP B 06 HLT 07 CALL address 07 INC A 08 XCHG [address], A 08 CALL address 09 RET 09 SHR B 0A MOV B, A 0A XCHG [address], B 0B HLT 0B POP A 0C RCR B 0C MOV A, [address] 0D OUT B 0D RET 0E XOR [address], B 0E OR [address], A 0F ADD A, [address] 0F NOT B Student ID: XX9 Instruction RET JGE address HLT IN A MOV B, A ADD [address], byte XCHG [address], B SUB A, [address] NOT B RCR A CALL address POP B CMP B, [address] OUT A MOV [address], A PUSH A
Student ID: XX8 Opcode Instruction 00 IN A 01 MOV [address], A 02 RET 03 XCHG [address], B 04 INC [address] 05 PUSH B 06 CMP A, B 07 MOV B, byte 08 JAE address 09 CALL address 0A SHR A 0B OUT B 0C POP [address] 0D AND A, byte 0E DEC [address] 0F HLT
Opcode 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
Page
Note: Byte means immediate 1 byte data e.g., MOV B, 5H will insert 05 H in B register. [address] means the content of e.g., MOV B, [5H] means copy the content of RAM location 05H to B
Meaning
Moves immediate byte to A Moves immediate byte to B Moves content of address to A Moves content of A to address Moves content of address to B Moves content of B to address Adds A with immediate byte and stores the result in A Adds B with immediate byte and stores the result in B Adds the value of A with content of address and stores the result in A Adds content of address with the value of A and stores the result in address Adds the value of B with content of address and stores the result in B Adds content of address with the value of B and stores the result in address Subtracts immediate byte from A and stores the result in A Subtracts immediate byte from B and stores the result in B Subtracts content of address from the value of A and stores the result in A Subtracts value A from of address and stores the result in address Subtracts content of address from the value of B and stores the result in B Subtracts B from address and stores the result in address Exchanges the contents of A and B Exchanges the contents of A and address Exchanges the contents of A and address Exchanges the contents of B and address Exchanges the contents of B and address Increments the content of A by 1 Increments the content of B by 1 Increments the content of address by 1 Decrements the content of A by 1 Decrements the content of B by 1 Decrements the content of address by 1 Negate A Negate B ANDs A with immediate byte and stores the result in A ANDs B with immediate byte and stores the result in B ANDs the value of A with content of address and stores the result in A ANDs content of address with the value of A and stores the result in address ANDs the value of B with content of address and stores the result in B ANDs content of address with the value of B and stores the result in address ORs A with immediate byte and stores the result in A ORs B with immediate byte and stores the result in B ORs the value of A with content of address and stores the result in A ORs content of address with the value of A and stores the result in address ORs the value of B with content of address and stores the result in B ORs content of address with the value of B and stores the result in address XORs A with immediate byte and stores the result in A XORs B with immediate byte and stores the result in B XORs the value of A with content of address and stores the result in A
Page
Page
XOR [address], A XOR B, [address] XOR [address], B CMP A, byte CMP B, byte CMP A, [address] CMP [address], A CMP B, [address] CMP [address], B TEST A, byte TEST B, byte TEST A, [address] TEST [address], A TEST B, [address] TEST [address], B JMP address JZ address JNZ address JG address JGE address JL address JLE address JE address JA address JAE address JB address JBE address PUSH A PUSH B PUSH [address] POP A POP B POP [address] PUSHF POPF CALL address RET IN A IN B IN [address] OUT A OUT B HLT RCL A RCL B RCR A RCR B SHL A SHL B SHR A SHR B
XORs content of address with the value of A and stores the result in address XORs the value of B with content of address and stores the result in B XORs content of address with the value of B and stores the result in address Compares (subtraction) A with immediate byte and updates flags Compares (subtraction) B with immediate byte and updates flags Compares (subtraction) the value of A with content of address and updates flags Compares (subtraction) content of address with the value of A and updates flags Compares (subtraction) the value of B with content of address and stores the result in B Compares (subtraction) content of address with the value of B and updates flags ANDs A with immediate byte and updates flags ANDs B with immediate byte and updates flags ANDs the value of A with content of address and updates flags ANDs content of address with the value of A and updates flags ANDs the value of B with content of address and updates flags ANDs content of address with the value of B and updates flags Jumps to address: unconditional Jumps if result of previous operation was zero Jumps if not zero Jumps if greater (A > B, A is the source operand, and B is the destination operand): signed Jumps if greater or equal: signed Jumps if less: signed Jumps if less or equal: signed Jumps if equal Jumps if above (A>B, A is the source operand, and B is the destination operand): unsigned Jumps if above or equal: unsigned Jumps if below: unsigned Jumps if below or equal: unsigned Pushes the content of A to stack Pushes the content of B to stack Pushes the content of address to stack Pops the content of A from stack Pops the content of B from stack Pops the content of address from stack Pushes the flag register to stack Pops the flag register from stack Calls a procedure from address Return from procedure Takes an input from the input port and puts it inside the A register Takes an input and puts it inside the A register Takes an input and puts it as the content of address Displays the content of A in output port Displays the content of B in output port Halts the computer Rotate A with carry to left by 1 Rotate B with carry to left by 1 Rotate A with carry to right by 1 Rotate B with carry to right by 1 Shift A to left by 1 Shift B to left by 1 Shift A to right by 1 Shift B to right by 1