Lab3 - 6502 Math and Strings Lab
Today, the task is creating a simple program using the 6502 assembly language. I will create an adding calculator. As a beginner, it is really hard to create the code from scratch, so I will use Chris Tyler's code as a foundation. This is the GitHub repository that I referenced. Here is the original 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 define SCREEN $ffed ; get screen size define PLOT $fff0 ; get/set cursor coordinates ; zeropage variables define PRINT_PTR $10 define PRINT_PTR_H $11 define value $14 define value_h $15 ; absolute variables define GETNUM_1 $0080 define GETNUM_2 $0081 ; constants ; -------------------------------------------------------- jsr SCINIT jsr CHRIN jsr PRINT dcb "A","d","d","i","n","g",32 dcb "c"...