mirror of
https://github.com/pkivolowitz/asm_book.git
synced 2026-06-22 21:06:48 +08:00
added MOD
This commit is contained in:
parent
d64aed1012
commit
5b7040c298
1 changed files with 8 additions and 0 deletions
|
|
@ -148,4 +148,12 @@ main:
|
||||||
.macro AASCIZ label, string
|
.macro AASCIZ label, string
|
||||||
.p2align 2
|
.p2align 2
|
||||||
\label: .asciz "\string"
|
\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
|
.endm
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue