+Random Terrain Posted January 8 Share Posted January 8 I'm about half way through correcting HTML errors on my web site and I noticed that Lesson 6 and Lesson 7 by Robert M still don't have answers for the exercises. Can somebody who knows assembly language post the answers to the exercises? Lesson 6 https://www.randomterrain.com/atari-2600-memories-tutorial-robert-m-06.html https://forums.atariage.com/topic/39747-assembly-language-programming-lesson-6-binary-logic/ Lesson 7 https://www.randomterrain.com/atari-2600-memories-tutorial-robert-m-07.html https://forums.atariage.com/topic/181981-assembly-language-programming-lesson-7-state-machines/ Thanks. Quote Link to comment Share on other sites More sharing options...
Thomas Jentzsch Posted January 8 Share Posted January 8 (edited) Lesson 6 Quote 1.Given the following bytes (A) and bitmask (B) values calculate the result C, for C = A & B, C = A | B, and C = A ^ B. A = %11111111, B=%10101010 A = %00000000, B=%01010101 A = %11110000, B=%01110111 %10101010, %11111111, %01010101 %00000000, %01010101, %01010101 %01110000, %11110111, %10000111 Quote 2.Given the following bytes (A) and bitmask (B) values calculate the result C, for C = A NAND B, C = A NOR B, and C = A XNOR B. A = %10110110, B=%00000000 A = %11111111, B=%11111111 %11111111, %01001001, %01001001 %00000000, %00000000, %11111111 Quote 3.Fill in the blanks '_____' in this pseudocode example with what you believe is the correct logical function. SUBROUTINE CheckPlayerStatus BEGIN IF (PLAYER.has_green_key = TRUE) ___ (Player.is_touching_door) THEN Goto PlayerExitsLevel ELSE IF (Player.touching_monster = TRUE) ___ (Player.touching_arrow) THEN Goto PlayerKilled ELSE IF (Player.touching_gold = TRUE) ___ (Monster.died) THEN Goto PlayerGetsPoints ENDIF END CheckPlayerStatus AND, OR, OR (I would remove green from the key) Edited January 8 by Thomas Jentzsch 1 Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted January 8 Author Share Posted January 8 3 hours ago, Thomas Jentzsch said: Lesson 6 %10101010, %11111111, %01010101 %00000000, %01010101, %01010101 %01110000, %11110111, %10000111 %11111111, %01001001, %01001001 %00000000, %00000000, %11111111 AND, OR, OR (I would remove green from the key) Thanks. It's now on the page for Lesson 6: https://www.randomterrain.com/atari-2600-memories-tutorial-robert-m-06.html#answers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.