Assembly language code lab 2
Lab 2 adding calculator About: The Adding Calculator program is designed for a computer system with specific memory locations and routines. The program prompts the user to enter two decimal numbers, performs addition, and displays the sum. Code: ; Adding Calculator ; ROM routine entry points define SCINIT $ff81 ; initialize/clear screen define CHRIN $ffcf ; input character from keyboard define CHROUT $ffd2 ; output character to screen ; zeropage variables define PRINT_PTR $10 define PRINT_PTR_H $11 define firstInput $14 define secInput $15 ; absolute variables define GETNUM_1 $0080 define GETNUM_2 $0081 define ENTER $0d ; for the ENTER key define BACKSPACE $08 ; for the BACKSPACE key ; -------------------------------------------------------- ; Main loop jsr SCINIT ; initialize/clean screen main: ; get first input' ldy #$00 jsr firstIn...