Unsigned 32 X 32 Bit Multiply (.Mulu32) - Motorola M68CPU32BUG User Manual

Debug monitor
Table of Contents

Advertisement

.MULU32
5.2.10 Unsigned 32 x 32 Bit Multiply
SYSCALL
TRAP CODE: $0069
Multiply two 32-bit unsigned integers and return the product on the stack as a 32-bit unsigned
integer. No overflow checking is performed.
Entry Conditions:
SP ==>
Exit Conditions:
SP ==>
EXAMPLE
Multiply D0 by D1, load result into D2.
SUBQ.L
#4,A7
MOVE.L
D0,-(A7)
MOVE.L
D1,-(A7)
SYSCALL
.MULU32
MOVE.L
(A7)+,D2
M68CPU32BUG/D REV 1
Unsigned 32 x 32 Bit Multiply
.MULU32
32-bit multiplier
32-bit multiplicand
32-bit space for result
32-bit product (result from multiplication)
Allocate space for result
Push multiplicand
Push multiplier
Multiply D0 by D1
Get product
5-14
SYSTEM CALLS
.MULU32

Advertisement

Table of Contents
loading

Table of Contents