Jul 26, 2018
Adventures in machine code #3
I just spent a couple of days separating out bitfields in my programs, and writing a translator to pack them correctly.
Then I realized that doing so makes it harder to count bytes when computing jump targets.
Luckily there's just two such bytes in the 32-bit x86 encoding, and most of the time the rule becomes, "add 1 byte if these three columns contain anything".
https://github.com/akkartik/mu/tree/6e51c60c699/subx/Readme.md
This post is part of my Freewheeling Apps Devlog.
Comments gratefully appreciated. Please send them to me by any method of your choice and I'll include them here.