Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* EDIV instruction
@ 1995-12-05  5:00 medcm
  1995-12-06  5:00 ` Ron Natalie
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: medcm @ 1995-12-05  5:00 UTC (permalink / raw)


I am currently writing a program in MACRO-32 to run on a VAX system.  When
I use the instruction EDIV R5,R0,R0,R1 , according to the technical specs,
the computer should take the value R1:R0, a quadword composed of the values
in R1 and R0, with R1 more significant, and divide it by the doubleword
value in R5, then store the doubleword answer in R0 and the doubleword
remainder in R1.  However, when I execute that instruction, with R0=0, 
R1=1, and R5=2, instead of returning R1=0 and R0=^x80000000, as it
seemingly should, it returns R1=0 and R0=0.  Is there any explanation for
this, and are the technical specs that I read correct?

 
        Michael DeSalvo
        medcm@jazz.ucc.uno.edu
 




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1995-12-07  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-12-05  5:00 EDIV instruction medcm
1995-12-06  5:00 ` Ron Natalie
1995-12-06  5:00 ` John Laird
1995-12-07  5:00 ` Brian Hibbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox