fork download
  1. hexChars: dw 0, 0x03ff0000, 0x0000007e, 0x0000007e, 0, 0, 0, 0
  2.  
  3. # hexChars[ch >> 5] & (1 << (ch & 0x1F))
  4.  
  5. srl t0, a0, 5 # ch >> 5
  6. lw t0, hexChars(t0) #
  7. andi t1, a0, 0x1F # ch & 0x1F
  8. addi t2, zero, 1 # 1
  9. sll t2, a0, t1 # 1 << (ch & 0x1F)
  10. and t0, t0, t2 # t0 is 0 if not a hex char
  11.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty