Lab - 2 6502 Assembly Language Lab
We are required to alter a piece of code in 6502 Assembly language lab that was provided to us in order to achieve the following results: 1) Change the code to fill the display with light blue instead of yellow: Changing LDA #$07 to LDA #$0E, which is a binary code that turns the color of yellow into light blue, is all that is necessary to accomplish this. As we are sending the instruction for the color to change to light blue, we are aware that LDA signifies that something is going to be loaded in the accumulator. 2) Change the code to fill the display with a different color on each page: Four loops are necessary for this since they will vary the color of each page. As demonstrated in class using basic code, such as loading a byte with some color in y and then storing it in byte, it is incremented and made to loop until all 256 bytes have been used, at which point it becomes one loop. The basic code looks like this: 1) Code to fill the display with l...