1,885
edits
Changes
no edit summary
* [[6502 Emulator]]
* [[6502 Emulator Example Code]]
* Opcode/Instruction References
** [http://www.6502.org/tutorials/6502opcodes.html 6502 Opcodes with Register Definitions]
** [https://www.masswerk.at/6502/6502_instruction_set.html 6502 Opcodes with Detailed Operation Information]
== Lab 1 ==
=== Setup ===
1. Organize a group of 4-6 students around one of the monitor/whiteboard groups in the classroom. Arrange the furniture so that everyone has a comfortable view of the display.
2. Gather these supplies:
* HDMI cable
* Whiteboard markers
3. Select one person to be the "Driver", who will type/operate the computer for the group. That person should connect a device (laptop, table) to the HDMI display and open the [[6502 Emulator]] at [http://6502.cdot.systems] as well as this page. 4. Decide how group results will be shared between the members of the group. (Suggestion: consider using a git repository).
{{Admon/important|Save Your Work|The emulator '''does not''' save your work. Remember to periodically save it to a file (copy-and-paste the code).}}
=== Bitmap Code ===
lda #$00 ; set a pointer at $40 to point to $0200
sta $40
cpx #$06 ; compare with 6
bne loop ; continue until done all pages
5. Test the code by pressing the Assemble button, then the Run button. If the there are any errors assembling (compiling) the code, they will appear in the message area at the bottom of the page. Make sure the code is running correctly and that everyone in your group understands how it works.
tya
lsr
=== Writing Code, Part 1 ===
14. Write code to draw a green line across the top of the bitmap screen and a blue line across the bottom.
=== Writing Code, Part 2 ===
15. Write code to draw a yellow line down the left side of the screen and a purple line down the right side.
== Write-Up ==
Post an entry on your blog describing your experiments in this lab. Include: