Code (in RISC-V Assembly) and run both of the the student problems described below.
Definition: A decimal number is a number that uses a decimal point to separate a whole number from a part of a whole.
Image and Description From: commons.wikimedia.org
To see a larger version of the image click HERE.
Student program written in machine language for the IBM 650 in August 1961 by me (Arnold Reinhold). It answers Exercises 6 and 7 on page 23 of Andree, Programming the IBM 650 Magnetic Drum Computer, a popular introductory text. Exercise 6 asks the student to write a program that reads a deck of punched cards, each of which have a decimal value, X, in the first ten columns and Y in the next ten. For each input card, the program should punch an output card with the values X, Y, 2X-Y, 2X2-XY, and 2X3-X2Y+X in the first 50 columns, ten columns each, with zeros in the rest. Problem 7 asks the student to modify the program to punch a 9 in column 80 if 2X3-X2Y+X is positive. The memory layout and use of SOAP nemonics follows examples given in the text. (I was studying on my own and never had an opportunity to run the program.) --agr (talk) 15:27, 10 October 2023 (UTC))