English
Language : 

GMS30C2216 Datasheet, PDF (83/320 Pages) Hynix Semiconductor – 16/32 BIT RISC/DSP
Instruction Set
Format
RR
Notation
DIVS Rd, Rs
RR
DIVU Rd, Rs
Register
L0 : $1
L1 : $23456789
L2 : 123456
Instruction
DIVU
L0, L2
3-21
Operation
if Rs = 0 or quotient overflow or Rd(31) = 1 then
-- dividend is negative
Rd//Rdf := undefined;
Z := undefined;
N := undefined;
V := 1;
trap ⇒ Range Error;
else
remainder Rd, quotient Rdf := (Rd//Rdf) / Rs;
Z := Rdf = 0;
-- quotient is zero
N := Rdf(31);
-- quotient is negative
V := 0;
if Rs = 0 or quotient overflow then
Rd//Rdf := undefined;
Z := undefined;
N := undefined;
V := 1;
trap ⇒ Range Error;
else
remainder Rd, quotient Rdf := (Rd//Rdf) / Rs;
Z := Rdf = 0;
-- quotient is zero
N := Rdf(31);
V := 0;
; L0 = $789
; L1 = $1000