2011-05-07 73 views

回答

1

试试这个:

blt $t1, 'A', next 
    bgt $t1, 'z', next 
    ble $t1, 'Z', ok 
    blt $t1, 'a', next 
ok: 
    # code to run if byte in $t1 is a letter 
next: 
    # code to run if byte in $t1 is a not letter 

基本上你需要检查寄存器的内容是“A”和“Z”或“a”到“z”之间。