CHAPTER 12 MULTIPLIER
User’s Manual U17446EJ3V1UD
221
;==============================================================
;
The example of multiplier use
;==============================================================
M_DATA_A
EQU
0FE80H
; Address A for multipliers
M_DATA_B
EQU
0FE90H
; Address B for multipliers
; A setup for operation
MOV
M_DATA_A,
#0AAH
MOV
M_DATA_B,
#0D3H
; Multiplication of M_DATA_A and M_DATA_B
MOV
A,
M_DATA_A
MOV
MRA0,
A
MOV
A,
M_DATA_B
MOV
MRB0,
A
SET1
MULST0
;
Multiplication
start
M_LOOP:
BT
MULST0, $M_LOOP
; Waiting for multiplication completion
MOVW
AX, MUL0
; Multiplication completion
Содержание 78K0S/KB1+
Страница 2: ...User s Manual U17446EJ3V1UD 2 MEMO ...