I needed a RISC-V reference for a project (perhaps porting Bluejay to RISC-V???) and couldn’t find a good, searchable one online. I found some great documentation written by ~icefox on sourcehut, and made a little web page to show all the data with a search box. Hopefully somebody finds it useful 🙂

The web page was a lot of fun to make, it’s just a 100 line HTML file, with a little JavaScript and CSS all inline. This is the code to handle searching:

// q is the search query string
for (let item of instructions)
{
	if (!item.mnemonic.toLowerCase().includes(q) &&
		!item.name.toLowerCase().includes(q))
		continue;
		
	// render the instruction
}

Works great!

Leave a Reply

Your email address will not be published.