\chapter{Output of Instructions} \dspaceon This appendix contains six screen displays which are not convenient to be included in chapter 5, but they are useful for further understanding of the output. \newpage \dspaceoff \vspace*{60mm} \begin{verbatim} pc= instr= acc= sp= index= CNZV= pc<- 000002 000004 000100 002000 000000 1000 000003 INSTRUCTIONS : 0000000000000100 EXPLANATION : neg neg OCTAL CODE : 000004 add,d,60 FUNCTION CODE : neg OPCODE GROUP : group 2 ADDRESSING MODE : none MAIN MEMORY OPERAND : none ACCESS LOCATION : none 0 010100 000004 000004 042060 4 052061 052062 072063 022064 Negate accumulator contents 10 024066 032064 034066 000002 14 000016 012065 000002 000016 20 000016 012064 070177 050105 OLDacc : 1111111111000000 24 000000 000000 000000 000000 NEWacc : 0000000001000000 30 000000 000000 000000 000000 34 000000 000000 000000 000000 Press q for exit and any other 40 000000 000000 000000 000000 keys for next instruction: 44 000000 000000 000000 000000 Fig B.1 The neg instruction \end{verbatim} \newpage \vspace*{60mm} \begin{verbatim} pc= instr= acc= sp= index= CNVZ= pc<- 000004 052061 007371 002000 000000 0000 000005 INSTRUCTIONS : 0101010000110001 EXPLANATION : add,d,60 sub,d,61 OCTAL CODE : 052061 sub,d,62 FUNCTION CODE : sub OPCODE GROUP : group 1 ADDRESSING MODE : direct MAIN MEMORY OPERAND : 61 ACCESS LOCATION : 61 44 000000 000000 000000 000000 50 000000 000000 000000 000000 54 000000 000000 000000 000000 acc <- acc - src 60 037402 030111 010204 007707 OLDacc : 0011111101000010 64 000000 170016 000100 000000 SOURCE : 0011000001001001 70 000000 000000 000000 000000 RESULT : 0000111011111001 74 000000 000000 000000 000000 100 000000 000000 000000 000000 Press q for exit and any other 104 000000 000000 000000 000000 key for next instruction: 110 000000 000000 000000 000000 Fig B.2 The sub instruction \end{verbatim} \newpage \vspace*{60mm} \begin{verbatim} pc= instr= acc= sp= index= CNZV= pc<- 000014 000016 101621 002000 007105 0101 000015 INSTRUCTIONS : 0000000000001110 EXPLANATION : asr lsr OCTAL CODE : 000016 lda,d,65 FUNCTION CODE : lsr OPCODE GROUP : group 2 ADDRESSING MODE : none MAIN MEMORY OPERAND : none ACCESS LOCATION : none 64 007105 170016 000100 000000 70 000000 000000 000000 000000 acc rotated right 1 place. 74 000000 000000 000000 000000 C-bit loaded into bit 15. 100 007105 000000 000000 000000 bit 0 loaded into C bit. 104 000000 000000 000000 000000 OLDacc : 0000011100100010 110 000000 000000 000000 000000 NEWacc : 1000001110010001 114 000000 000000 000000 000000 120 000000 000000 000000 000000 Press q for exit and any other 124 000000 000000 000000 000000 key for next instruction: 130 000000 000000 000000 000000 Fig B.3 The lsr instruction \end{verbatim} \newpage \vspace*{60mm} \begin{verbatim} pc= instr= acc= sp= index= CNZV= pc<- 000000 130100 000000 002000 000000 0000 000100 INSTRUCTIONS : 1011000001000000 EXPLANATION : jmp,#,100 OCTAL CODE : 130100 lda,#,740 FUNCTION CODE : jmp OPCODE GROUP : group 1 ADDRESSING MODE : immediate MAIN MEMORY OPERAND : 100 ACCESS LOCATION : none 0 130100 000000 000000 000000 4 000000 000000 000000 000000 jump to location 100. 10 000020 000000 000000 000000 14 000000 000000 000000 000000 20 012070 042071 000007 000012 24 000000 000000 000000 000000 30 000000 000000 000000 000000 34 000000 000000 000000 000000 Press q for exit and any other 40 000000 000000 000000 000000 keys for next instruction: 44 000000 000000 000000 000000 Fig B.4 The jmp instruction \end{verbatim} \newpage \vspace*{60mm} \begin{verbatim} pc= instr= acc= sp= index= CNZV= pc<- 000103 110011 000111 001774 001774 0000 000104 INSTRUCTIONS : 1001000000001001 EXPLANATION : add,x,2 ora,#,11 OCTAL CODE : 110011 lsl FUNCTION CODE : ora OPCODE GROUP : group 1 ADDRESSING MODE : immediate MAIN MEMORY OPERAND : 11 ACCESS LOCATION : none 1730 000000 000000 000000 000000 1734 000000 000000 000000 000000 1740 000000 000000 000000 000000 acc <- acc V src 1744 000000 000000 000000 000000 OLDacc : 0000000001000000 1750 000000 000000 000000 000000 SOURCE : 0000000000001001 1754 000000 000000 000000 000000 RESULT : 0000000001001001 1760 000000 000000 000000 000000 1764 000000 000000 000000 000000 Press q for exit and any other 1770 000000 000000 000000 000000 keys for next instruction: 1774 000000 000000 000020 000060 Fig B.5 The ora instruction \end{verbatim} \newpage \vspace*{60mm} \begin{verbatim} pc= instr= acc= sp= index= CNZV= pc<- 000006 000014 000037 001776 000060 0000 000007 INSTRUCTIONS : 0000000000001100 EXPLANATION : rts rir OCTAL CODE : 000014 pul FUNCTION CODE : rir OPCODE GROUP : group 2 ADDRESSING MODE : none MAIN MEMORY OPERAND : none ACCESS LOCATION : 1775 1730 000000 000000 000000 000000 1734 000000 000000 000000 000000 1740 000000 000000 000000 000000 restore data from stack 1744 000000 000000 000000 000000 1775 to index register 1750 000000 000000 000000 000000 1754 000000 000000 000000 000000 1760 000000 000000 000000 000000 1764 000000 000000 000000 000000 Press q for exit and any other 1770 000000 000000 000000 000000 keys for next instruction: 1774 000000 000060 000020 000060 Fig B.6 The rir instruction \end{verbatim}