Skip to content

Instantly share code, notes, and snippets.

View arunk-s's full-sized avatar

Arun Sori arunk-s

View GitHub Profile
@arunk-s
arunk-s / risc.tavor
Created March 20, 2015 10:41
Simple tavor format to generate RISC-V Assembly instructions
START = ".global _start" "\n" "_start:" "\n" +(line "\n")
/*register_zero = "x0"*/
register_name = "x"[0-31]
instruction_r_type = inst_r " " register_name "," register_name "," register_name
instruction_i_type = (inst_i | inst_l | inst_s) " " register_name "," register_name "," +([\d]) //12 bit immediate

Keybase proof

I hereby claim:

  • I am arunk-s on github.
  • I am arunks (https://keybase.io/arunks) on keybase.
  • I have a public key ASAKI2NEXOIHew05064rAWsjoUnuNLe1K4es7FR9UEfD7wo

To claim this, I am signing this object: