tips

vim add new line after curly braces to make structs prettier:

 :%s/{\([^${]\)/{\r\1/cg


hexdump to go-friendly format:

$ hexdump -v -e '"\\\x" 1/1 "%02x"' test.dcpu16 ;echo
\x01\x7c\x30\x00\xe1\x7d\x00\x10\x20\x00\x03\x78\x00\x10\x0d\xc0\xc1\x7d\x19\x00\x61\xa8\x01\x7c\x00\x20\x61\x21\x00\x20\x63\x84\x6d\x80\xc1\xb5\x31\x90\x10\x7c\x17\x00\xc1\x7d\x19\x00\x37\x90\xc1\x61\xc1\xe5