From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,33dd5febb8fc0fd0 X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,33dd5febb8fc0fd0 X-Google-Attributes: gid110292,public X-Google-Thread: 105d97,cf27a69d65b9f023 X-Google-Attributes: gid105d97,public X-Google-Thread: 102b75,cf27a69d65b9f023 X-Google-Attributes: gid102b75,public From: Jerry Leichter Subject: Re: Intel Basic and Applied Research (and the DEC lawsuit) Date: 1997/06/02 Message-ID: <3392D097.29B8@smarts.com>#1/1 X-Deja-AN: 245628314 References: <5lbm3p$qgn$1@nnrp1.crl.com> <337C6A96.6052F337@cs.wisc.edu> <338B62A4.B014C80B@cs.wisc.edu> <5mqad1$b1a$1@sue.cc.uregina.ca> <3391C0F8.A699BA1B@cs.wisc.edu> To: glew@cs.wisc.edu Organization: System Management ARTS Newsgroups: comp.sys.dec,comp.sys.intel,comp.arch,sci.electronics | The definition of the flags (condition codes) on both 68K and VAX | is problematic, since frequently instructions write only a subset | and leave the rest undefined. x86 does this much less often. As best I can recall - I don't have a VAX reference here to check - the VAX doesn't do this *at all*. (I don't think the PDP-11 did either.) Every instruction either sets *all* the condition codes (with some of them necessarily fixed - e.g., TST can set Zero or Negative, but always clears oVerflow and Carry) or affects *none* of them. There are theoretical advantages to setting only a minimal set *if* you leave the other ones alone, as you can then (theoretically) re-arrange code when convenient to delay tests. In practice, I suspect this happens so rarely that all you are really doing is making it harder for people to use the ISP - it's just one more complication to learn. (Compilers probably don't much care either way - it's just a table entry.) I can't think of *any* advantages (from the *programming* point of view) to leaving some of the condition codes undefined. -- Jerry