Yes, but that only works for signed (two complement) numbers. ;-) Douglas Wood Software Engineer dbwood@kc.rr.com Home of the EPICIS Development System for the PIC and SX http://epicis.piclist.com ----- Original Message ----- From: "Eric Smith" To: Sent: Friday, May 25, 2001 6:50 PM Subject: Re: [PIC]: Stack overflow? Size of stack? > > Sure, I am not crazy about the way the SUBLW and SUBWF work, > > You may have a legitimate complaint about SUBWF. But SUBLW does exactly > the right thing: W := constant - W. > > If you want W := W - constant, you can use ADDLW -constant. If they had > made SUBLW do W := W - constant, it just would have been a waste of opcode > space. > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body