Lab 2: 6502 Assembly Language

In this posting, it is going to show some basic 6502 Assembly code examples and how do they work. It contains a description of some commands like TYA and LSR. Finally, it 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. Also, it is going to show how you can draw a yellow line down the left side of the screen and a purple line down the right side of the page. Bitmap Code There are four main sections: the base code example I will show, using TYA, using LSR, and using ASL - The base code and the description lda #$00 ; set a pointer at $40 to point to $0200 sta $40 lda #$02 sta $41 l da #$07 ; color ldy #$00 ...