Changes

Jump to: navigation, search

6502 Assembly Language Lab (Old Version)

1,487 bytes added, 11:02, 13 January 2020
no edit summary
=== 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". 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.
{{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).}}
bne loop ; continue until done all pages
# 4. Test the codeby 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.# 5. Add this instruction after the <code>loop:</code> label and before the <code>sta ($40),y</code> instruction:
tya
# 6. What visual effect does this cause, and how many colours are on the screen? Why?# 7. Add this instruction after the <code>tya</code>:
lsr
# 8. What visual effect does this cause, and how many colours are on the screen? Why?# Add a second 9. Repeat the above tests with two, three, four, and five <code>lsr</code> instructions in a row. Describe and observe explain the effectin each case.10. Add a third one Repeat the tests using <code>asl</code> instructions instead of <code>lsr</code> instructions. Describe and test again. What is explain the effect produced in each case? Why?.# 11. Remove the <code>tya</code> and all <code>asl</code> and <code>lsr</code> instructions and replace them .12. Test with one, two, then three to five <code>asliny</code> instructions. What Describe and explain the effect in each case. '''Note:''' ensure that the Speed slider is on its lowest setting (left) for these experiments. === Writing Code, Part 1 ===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 ===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:1. An introduction, so that someone who happens across your blog will understand the context of what you're writing about.2. The results from the ''Bitmap Code'' portion of the effect lab, describing what happened in each case and the reasons for it.3. The results from the two ''Writing Code'' portions of the lab, including the code, a description of how the code works, and the results produced? Why?.4. Your experiences with this lab -- your impressions of the Assembly Language, what you learned, and your reflections of the process.

Navigation menu