Lab 4 (6502 Assembly Language String Lab): Option 1: Adding Calculator
Introduction In this posting, I will describe a design and implementation for option 1, lab 4: Adding Calculator. There is a previous posting to describe a code for option 4: Screen Colour Selector . Option 1: Adding Calculator Create a subroutine which enables the user to enter two numbers of up to two digits. Indicate where the cursor is, and allow the user to use the digit keys (0-9), backspace, and enter keys. Return the user's input value in the accumulator (A) register. Using this subroutine, write a program which adds the two numbers (each of which is in the range 0-99) and print the result. The detailed instruction for this lab is demonstrated here . 1. Design 1.1. Pseudo Code Store "Enter the first number", "Enter the second number", "result" to output on the screen Print the "Enter the first number: " Receive the first number from the user. User can use enter to store the number and backspace to erase a number Store...