mirror of
https://github.com/pkivolowitz/asm_book.git
synced 2026-06-21 01:46:46 +08:00
Added mod to macros
Merge branch 'main' of https://github.com/pkivolowitz/asm_book
This commit is contained in:
commit
add0e3e448
3 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
BIN
README.pdf
BIN
README.pdf
Binary file not shown.
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue