branching

    [컴퓨터 구조] Ch6. Architecture (2) - Programming

    여기서는 위에서 살펴본 assembly code, machine code로 high-level software constructs를 구현하는 방법을 소개합니다. (if/else, for loops, while loops, arrays, function calls) Logical Instructions and, or, xor, nor = R-type andi, ori, xori = I-type Example Shift Instructions sll : shirt left logical ⇒ sll $t0, $t1, 5 # $t0 5 Variable Shift Instructions sllv : shift left lofical varialble srlv : shfit right logical variable..