Elec 4 0.0 / 5 ? ElectronicsAssembly Instructions A2/A-levelAQA Created by: EllatxCreated on: 08-11-16 19:09 NOP 1 Clock cycle to complete - used as a delay 1 of 11 CALL Use to call subordinates - takes 2 clock cycle because it has to store the current value of the PC 2 of 11 RET To exit the subroutine and to return to the main program 3 of 11 INC increasing the contents of the register by 1. 1 clock cycle - then its restored in the register 4 of 11 DEC decreasing the contents of the register by 1. 1 clock cycle - then stored back in the register, if 0 then zero flag is set 5 of 11 JMP Change the location of the next instruction to be executed. instruction followed by address. address loaded into PC and takes 2 clock cycles 6 of 11 JPZ Change the location of the next instruction ONLY IF the zero flag is set. If Z = 1 then it is loaded into the PC. if Z = 0 then it doesn't change 7 of 11 JPC Change the location of the next instruction ONLY IT the carry flag is set. If C is set to 1 then its laoded into the PC. If C is set 0 doesn't change. 8 of 11 MOVWR Instruction moves the contents of W into the register. If the zero flag is set then R = 0 9 of 11 MOVW Instruction to move the next address into the work register. If the zero flag is set then W = 0 10 of 11 MOVRW Move the contents of R into the working register.If the zero flag is set then W= 0 11 of 11
Comments
No comments have yet been made