3 ms·
In http://akkartik.name/post/mu-2019-1 http://akkartik.name/post/mu-2019-1 if you search for the pattern '/89' you'll find the first two versions. The 3rd one
by eterps 7y ago
In http://akkartik.name/post/mu-2019-1 http://akkartik.name/post/mu-2019-1 if you search for the pattern '/89' you'll find the first two versions.
The 3rd one is here:
https://github.com/akkartik/mu/blob/master/apps/factorial.subx#L23 https://github.com/akkartik/mu/blob/master/apps/factorial.su...
Can you explain in a sentence what rules are used to complete the encoding for the variant:
> 89/<- %ebp 4/r32/esp
- akkartik 7y agoAh, I see. Yes, I mentioned in the post that I was dropping some magic numbers. Mu is intended to be read in a text editor, and I didn't want to scare people too much while reading the post in a browser. Slightly evil, I know. The concrete rules are illustrated at https://github.com/akkartik/mu/blob/469a1a9ace9b290658beb9d0799b58ce3bc2a4b4/apps/sigils.subx#L9 https://github.com/akkartik/mu/blob/469a1a9ace9b290658beb9d0.... In this case `%<reg>` always translates to `3/mod <reg-code>/rm32`.