Xref: utzoo comp.sources.wanted:14350 comp.unix.ultrix:5497 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!uunet!mcsun!i2unix!inria!laas!ralph From: ralph@laas.fr (Ralph P. Sobek) Newsgroups: comp.sources.wanted,comp.unix.ultrix Subject: What does this assembler code do? Keywords: VAX, VMS, backup Message-ID: Date: 4 Dec 90 15:33:45 GMT Sender: news@laas.laas.fr Reply-To: ralph@laas.fr Followup-To: comp.sources.wanted Distribution: comp Organization: LAAS-CNRS France Lines: 21 The following embedded assembler code belongs to some C language code for reading VAX VMS Backup tapes under Unix. Maybe this would compile under Ultrix. If someone can translate this into straight C, I would sure appreciate that, also. Here's the function: 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! -- Ralph P. Sobek Disclaimer: The above ruminations are my own. ralph@laas.fr Addresses are ordered by importance. ralph@laas.uucp, or ...!uunet!laas!ralph If all else fails, try: sobek@eclair.Berkeley.EDU =============================================================================== Reliable software should kill people reliably! -Andy Mickel, Pascal News #13,78