Solutions to a given assembly quiz, including instructions for branching, saving values in memory, and implementing a simple pseudocode. It covers topics such as assembly language programming and memory management.
Download Assembly Quiz Solutions - Prof. Andrew Mason and more Quizzes Electrical and Electronics Engineering in PDF only on Docsity!
Quiz 5
What does the following instruction do? BRSET $0,X,$05,GOTIT Branches to GOTIT if the value at has bits 0 and 2 high ($5=%0000 0101)
Write directives to save the values $55 and $AA in memory locations $8010 and $8011. ORG $ FCB $55,$AA
Write a directive that sets the value of HERE to $0D11. HERE EQU $0D
Write a program to implement the following pseudocode. evaluate: Z = (value at DATA) + $ if negative, end otherwise, store Z to SAVE LDAA #$ ADDA $DATA BMI NEG STAA $SAVE NEG END