LAB 2
Introduction: In this lab, I will work with 6502 assembly language to perform how graphics are displayed and manipulated on a bitmapped screen. We provided a program that included a subroutine, which takes a rectangular image and places it at specified X and Y coordinates on the screen. The code calculates the correct screen memory address for the image using the position and dimensions provided, then copies the image data row by row to the screen memory. I began by testing this program by assembling and running it, ensuring it functioned correctly while observing how the DRAW subroutine works. After that I modified it to create a "bouncing graphic" animation. I started by setting an initial position for the graphic and defined increments for X and Y movement. The program then updated the graphic's position by adding these increments to its X and Y coordinates. When the graphic reached the screen's edges, the code reversed the direction by flipping the movement increm...