In this blog, I am going to show some basic 6502 Assembly code examples and how do they work. It will shows how you can draw a green line across the top of the bitmap screen and a blue line across the bottom of the page. Moreover, I am also going to show you how to draw a yellow line down the left side of the screen and a purple line down the right side. Let's get started!
This code will make the whole page become yellow by increasing the index, which helps to indicate the location of the page and make that bit yellow. In order to make a green line across the top and a blue line across the bottom of the page, I need to make some changes in the code. In order to make this, I have to indicate where the top green line will start and at the end of the page, I will change the color to blue. And there are also two yellow and purple line down the left and right respectively.