Added mod to macros

Merge branch 'main' of https://github.com/pkivolowitz/asm_book
This commit is contained in:
Perry Kivolowitz 2023-03-31 09:42:18 -05:00
commit add0e3e448
3 changed files with 8 additions and 1 deletions

View file

@ -276,7 +276,6 @@ knowledge - how cool is that!
| 8b | [Defining](./section_1/structs/defining.md) | [Link](./section_1/structs/defining.pdf) |
| 8c | [Using](./section_1/structs/using.md) | [Link](./section_1/structs/using.pdf) |
| 9 | [`const`](./section_1/const/README.md) | [Link](./section_1/const/README.pdf) |
| 10 | [Casting](./section_1/casting/README.md) | [Link](./section_1/casting/README.pdf) |
### Section 2 - Floating Point

Binary file not shown.

View file

@ -148,6 +148,14 @@ main:
.macro AASCIZ label, string
.p2align 2
\label: .asciz "\string"
<<<<<<< HEAD
.endm
.macro MOD src_a, src_b, dest, scratch
sdiv \scratch, \src_a, \src_b
msub \dest, \scratch, \src_b, \src_a
=======
>>>>>>> d64aed10129b1011df2b323fee667ec2a5eeab1b
.endm
.macro MOD src_a, src_b, dest, scratch