Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!ub!dsinc!cs.widener.edu!brendan From: brendan@cs.widener.edu (Brendan Kehoe) Newsgroups: comp.sources.wanted Subject: Re: What does this assembler code do? Keywords: VAX, VMS, backup Message-ID: <1990Dec04.202331.1716@cs.widener.edu> Date: 4 Dec 90 20:23:31 GMT References: Distribution: comp Organization: Widener CS Dept Lines: 21 In , ralph@laas.fr writes: >vdatetosec() >{ > asm("movl 4(ap),r0"); > asm("movl (r0)+,r2; movl (r0),r3; subl2 $2913970176,r2; sbwc $8164719,r3 "); > asm("ediv $10000000,r2,r0,r1"); >} >Neither SPARCs nor 680x0s like this code! That's because it's Vax MACRO-32 code. It's hard to tell *what* it does because of the two addresses (used by subl2 & sbwc). Maybe a VMS guru can give you a better hint. I really don't think this belongs over here... -- Brendan Kehoe - Widener Sun Network Manager - brendan@cs.widener.edu Widener University in Chester PA A Bloody Sun-vs-Dec War Zone "Hi there! Did you know that the very same technology that cleaned up the Alaskan oil spill can be used to suck the fat out of your thighs & upper lip?"