SPU Flow Control - Computer Organization (4400)

Опубликовано: 18 Июнь 2026
на канале: Amos Confer
438
2

!SEE ERROR CORRECTION BELOW!

Coverage off the basic high-level control flow structures for the Student Processing Unit (SPU) assembler. Assembly language implementations of if w/o else, if-else, multi-conditional if, do loop, while loop, for loop and functions are shown.

ERROR: A student discovered an error in this control flow video. In the first two code examples, I need to increment the variable !dog. In the code, I put !og into register A and later increment that value with the INCA instruction. The error is that I than store the value in A back into the variable !dog, but A does NOT contain the incremented value... register C does. So, for the first code example, instead of "stor !dog, A", I should have written "stor !dog, C". For the second code example, it should be "storp !dog, C".