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

In 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.su...

Can you explain in a sentence what rules are used to complete the encoding for the variant:

> 89/<- %ebp 4/r32/esp



Ah, 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/469a1a9ace9b290658beb9d0.... In this case `%<reg>` always translates to `3/mod <reg-code>/rm32`.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: