This commit is contained in:
Kartik K. Agaram 2021-10-20 14:47:18 -07:00
parent b367e7f7f9
commit c9c5faef24
1 changed files with 5 additions and 1 deletions

View File

@ -164,6 +164,9 @@ In programming there is no penalty for making mistakes, and once you arrive at
the correct solution you have it forever. As always, [feel free to ping me and the correct solution you have it forever. As always, [feel free to ping me and
ask questions or share your experience](http://akkartik.name/contact). ask questions or share your experience](http://akkartik.name/contact).
Mu statements can have _outputs_ on the left (before the `<-`) and _inouts_ on
the right (after the instruction name).
One gotcha to keep in mind is that numbers in Mu must always be in hexadecimal One gotcha to keep in mind is that numbers in Mu must always be in hexadecimal
notation, starting with `0x`. Use a calculator on your computer or phone to notation, starting with `0x`. Use a calculator on your computer or phone to
convert 42 to hexadecimal, or [this page on your web browser](http://akkartik.github.io/mu/tutorial/converter.html). convert 42 to hexadecimal, or [this page on your web browser](http://akkartik.github.io/mu/tutorial/converter.html).
@ -175,7 +178,8 @@ a second one in memory. To prepare for this, reread the first section of the
[Mu syntax description](https://github.com/akkartik/mu/blob/main/mu.md), and [Mu syntax description](https://github.com/akkartik/mu/blob/main/mu.md), and
then its section on [local variables](https://github.com/akkartik/mu/blob/main/mu.md#local-variables). then its section on [local variables](https://github.com/akkartik/mu/blob/main/mu.md#local-variables).
The section on [integer primitives](https://github.com/akkartik/mu/blob/main/mu.md#integer-primitives) The section on [integer primitives](https://github.com/akkartik/mu/blob/main/mu.md#integer-primitives)
also provides a useful cheatsheet of the instruction forms you will need. also provides a useful cheatsheet of the different forms of instructions you
will need.
``` ```
fn foo -> _/eax: int { fn foo -> _/eax: int {