1*073d9f2cSAleksandar Markovic #include<stdio.h> 2*073d9f2cSAleksandar Markovic #include<assert.h> 3*073d9f2cSAleksandar Markovic 4*073d9f2cSAleksandar Markovic int main() 5*073d9f2cSAleksandar Markovic { 6*073d9f2cSAleksandar Markovic int acli, aclo; 7*073d9f2cSAleksandar Markovic int result; 8*073d9f2cSAleksandar Markovic 9*073d9f2cSAleksandar Markovic acli = 0x004433; 10*073d9f2cSAleksandar Markovic result = 0x004433; 11*073d9f2cSAleksandar Markovic 12*073d9f2cSAleksandar Markovic __asm 13*073d9f2cSAleksandar Markovic ("mthi %1, $ac1\n\t" 14*073d9f2cSAleksandar Markovic "mfhi %0, $ac1\n\t" 15*073d9f2cSAleksandar Markovic : "=r"(aclo) 16*073d9f2cSAleksandar Markovic : "r"(acli) 17*073d9f2cSAleksandar Markovic ); 18*073d9f2cSAleksandar Markovic assert(result == aclo); 19*073d9f2cSAleksandar Markovic 20*073d9f2cSAleksandar Markovic return 0; 21*073d9f2cSAleksandar Markovic } 22