Instruction Set Each Instruction Word Is Composed of a One-Decimal-Digit Operation Code and a Two-Decimal-Digit Address

Instruction Set Each Instruction Word Is Composed of a One-Decimal-Digit Operation Code and a Two-Decimal-Digit Address

Cingletree Learning Teaching Tools for the Connected Classroom Decimal Computer http://decimalcomputer.com Instruction Set Each instruction word is composed of a one-decimal-digit operation code and a two-decimal-digit address. The left most digit is the operation code. The right two digits are the address. Op. code Description 0 _ _ Input – Copy the current input card into cell number _ _ and advance to the next card. Halt execution if the input card is empty. 1 _ _ Output – Copy the contents of cell number _ _ to the current output card and advance to the next card. 2 _ _ Add – Add the contents of cell number _ _ to the value of the accumulator. Sets carry bit on overflow. 3 _ _ Subtract – Subtract the contents of cell number _ _ from the current value of the accumulator. Sets carry bit on overflow. 4 _ _ Load Accumulator – Clear the accumulator and carry bit, then copy the contents of cell number _ _ into the accumulator. 5 _ _ Store Accumulator – Copy the contents of the accumulator into cell number _ _. 6 _ _ Jump – Place the current value of the program counter into cell 99. Next, change the value of the program counter to _ _. 7 _ _ Test Accumulator – If the value of the accumulator is negative, change the value of the program counter to _ _. 8 x y Shift – Shift the accumulator left x digits, then shift the result right y digits. Shift digits through the Carry Bit and enter zeros from the left and right appropriately. 9 _ _ Halt – Replace the value of the program counter with cell number _ _ and then halt execution. 28202 Cabot Rd., Suite 300 www.cingletree.com [email protected] Laguna Niguel CA, 92677 .

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    1 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us