Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

FWIW here's all 700 lines of Blink's x86 decoder. https://github.com/jart/blink/blob/master/blink/x86.c


I don't want to be the person that has to add an instruction to blink...


It looks like someone started with Intel's XED code (which relies on custom tables to specify instructions, and compiles that to C tables at compile time) and hand-minimized the code into a single file. I'm guessing it's designed to never have any more code added to it.


I minimized it by hand to make it more maintainable, to me at least.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: