---- START NEW MESSAGE --- Received: from cherry.ease.lsoft.com [209.119.0.109] by dpmail10.doteasy.com with ESMTP (SMTPD32-8.05) id A1955A260038; Sat, 31 Jan 2004 05:45:57 -0800 Received: from PEAR.EASE.LSOFT.COM (209.119.0.19) by cherry.ease.lsoft.com (LSMTP for Digital Unix v1.1b) with SMTP id <6.00CC66D8@cherry.ease.lsoft.com>; Sat, 31 Jan 2004 8:45:43 -0500 Received: from MITVMA.MIT.EDU by MITVMA.MIT.EDU (LISTSERV-TCP/IP release 1.8e) with spool id 7381 for PICLIST@MITVMA.MIT.EDU; Sat, 31 Jan 2004 08:45:38 -0500 Received: from MITVMA (NJE origin SMTP@MITVMA) by MITVMA.MIT.EDU (LMail V1.2d/1.8d) with BSMTP id 8766; Sat, 31 Jan 2004 08:45:04 -0500 Received: from mta04-svc.ntlworld.com [62.253.162.44] by mitvma.mit.edu (IBM VM SMTP Level 430) via TCP with SMTP ; Sat, 31 Jan 2004 08:45:03 EST X-Comment: mitvma.mit.edu: Mail was sent by mta04-svc.ntlworld.com Received: from snaga ([217.137.208.36]) by mta04-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with SMTP id <20040131134454.OQVC28193.mta04-svc.ntlworld.com@snaga> for ; Sat, 31 Jan 2004 13:44:54 +0000 References: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Message-ID: <009201c3e800$a38ee1c0$0c0fa8c0@srts.co.uk> Date: Sat, 31 Jan 2004 13:45:29 -0000 Reply-To: pic microcontroller discussion list Sender: pic microcontroller discussion list From: Sergio Masci Subject: Re: [PIC]: Hitech PICCLITE state machine optimization To: PICLIST@MITVMA.MIT.EDU Precedence: list X-RCPT-TO: Status: U X-UIDL: 371856669 ----- Original Message ----- From: Herbert Graf To: Sent: Friday, January 30, 2004 11:59 PM Subject: Re: [PIC]: Hitech PICCLITE state machine optimization > > > Umm, it was pretty obvious (at least to most others > > here) I was concerned > > > about the number of words a simple line like what is above generates. > > > > Probably not a coincidence. For assembler people it seems a way of life > > to try making a program smaller and/or faster than _needed_ (I have done > > a lot of assembler programming myself - not with PICs - and had the same > > habit). > > The point I tried to make is that if a program doesn't need to be made > > smaller then every effort to make it smaller is unproductive. Who wants > > to pay for wasted time? > > I don't want it smaller "for fun", I'm running out of code space (as usual) > have many more features I want to add. Thanks, TTYL If you want very high density you need to move all the event handling into one place and use state transition tables. If each table entry contains a minimum of "current state", "event", "new state" you will be able to search the table as opposed to using a direct index into it and you will trade space for speed (slower but smaller). When you have done this you may find that you have events that are common for ALMOST all states. You can extract these and build a table of exceptions (states to which these events do not apply), maybe just an array of bits where the current state is an index into the array and the corresponding bit indicates wheather the event applies or not. There are all sorts of things you can do provided you collect your event handling into one place. Regards Sergio Masci http://www.xcprod.com/titan/XCSB - optimising structured PIC BASIC compiler -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu . Return-Path: <> Received: from mitvma.mit.edu ([18.92.0.3]) by tomts34-srv.bellnexxia.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040130073723.FPJD23141.tomts34-srv.bellnexxia.net@mitvma.mit.edu> for ; Fri, 30 Jan 2004 02:37:23 -0500 Received: by mitvma.mit.edu (IBM VM SMTP Level 430) via spool with SMTP id 8241 ; Fri, 30 Jan 2004 02:37:20 EST Received: from MITVMA.MIT.EDU (NJE origin LISTSERV@MITVMA) by MITVMA.MIT.EDU (LMail V1.2d/1.8d) with BSMTP id 9165; Fri, 30 Jan 2004 02:37:20 -0500 Date: Fri, 30 Jan 2004 02:37:20 -0500 From: "L-Soft list server at MITVMA.MIT.EDU (1.8e)" Subject: PICLIST: error report from YAHOO.CO.UK To: listsjosh@3MTMP.COM, "For Blackholeeclipse@Earthlink.Net" Message-ID: X-LSV-ListID: None The enclosed message has been identified as a delivery error for the PICLIST list because it was sent to 'owner-piclist@MITVMA.MIT.EDU'. ------------------------------ Message in error ------------------------------- Received: from MITVMA (NJE origin SMTP@MITVMA) by MITVMA.MIT.EDU (LMail V1.2d/1.8d) with BSMTP id 9161; Fri, 30 Jan 2004 02:37:20 -0500 Received: from mta108.mail.ukl.yahoo.com [217.12.11.45] by mitvma.mit.edu (IBM VM SMTP Level 430) via TCP with SMTP ; Fri, 30 Jan 2004 02:37:20 EST X-Comment: mitvma.mit.edu: Mail was sent by mta108.mail.ukl.yahoo.com From: MAILER-DAEMON@yahoo.co.uk To: owner-piclist@mitvma.mit.edu X-Loop: MAILER-DAEMON@yahoo.co.uk Subject: Delivery failure Message from yahoo.co.uk. Unable to deliver message to the following address(es). : Sorry, your message to viniciusbh@yahoo.co.uk cannot be delivered. This account is over quota. --- Original message follows. Return-Path: Received: from 209.119.0.109 (EHLO cherry.ease.lsoft.com) (209.119.0.109) by mta108.mail.ukl.yahoo.com with SMTP; Fri, 30 Jan 2004 07:37:21 +0000 Received: from PEAR.EASE.LSOFT.COM (209.119.0.19) by cherry.ease.lsoft.com (LSMTP for Digital Unix v1.1b) with SMTP id <9.00CC428F@cherry.ease.lsoft.com>; Fri, 30 Jan 2004 1:33:38 -0500 Received: from MITVMA.MIT.EDU by MITVMA.MIT.EDU (LISTSERV-TCP/IP release 1.8e) with spool id 1035 for PICLIST@MITVMA.MIT.EDU; Fri, 30 Jan 2004 01:33:31 -0500 Received: from MITVMA (NJE origin SMTP@MITVMA) by MITVMA.MIT.EDU (LMail V1.2d/1.8d) with BSMTP id 7303; Fri, 30 Jan 2004 01:32:10 -0500 Received: from sj-iport-3.cisco.com [171.71.176.72] by mitvma.mit.edu (IBM VM SMTP Level 430) via TCP with SMTP ; Fri, 30 Jan 2004 01:32:10 EST X-Comment: mitvma.mit.edu: Mail was sent by sj-iport-3.cisco.com Received: from sj-core-1.cisco.com (171.71.177.237) by sj-iport-3.cisco.com with ESMTP; 29 Jan 2004 22:38:00 +0000 Received: from cisco.com (cypher.cisco.com [171.69.11.143]) by sj-core-1.cisco.com (8.12.9/8.12.6) with ESMTP id i0U6WAqh004281 for ; Thu, 29 Jan 2004 22:32:11 -0800 (PST) Received: from mac.com (sjc-vpn1-253.cisco.com [10.21.96.253]) by cisco.com (8.8.8/2.6/Cisco List Logging/8.8.8) with ESMTP id WAA15055 for ; Thu, 29 Jan 2004 22:32:10 -0800 (PST) Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.552) Message-ID: <02F5D2C6-52EE-11D8-9E8E-000A95E5DF26@mac.com> Date: Thu, 29 Jan 2004 22:32:01 -0800 Reply-To: pic microcontroller discussion list Sender: pic microcontroller discussion list From: William Chops Westfield Subject: Re: [PIC:] Disassemblers To: PICLIST@MITVMA.MIT.EDU In-Reply-To: <2193429B07D9914D97216EBBAA6AB8BD1A0542@whitlam.corp.gli.com.au> Precedence: list On Thursday, Jan 29, 2004, at 15:44 US/Pacific, Liam O'Hagan wrote: > > Can anyone tell me where the "bc", "a" and "h" etc are defined? > > The zilog user's manual and datasheet for the device don't explain > what they > are, neither does the source code I have. > > BC, A, and H are standard register names for a Z80 style processor. Is the "z86" you mention a Z80 variant, or a Z8 (entirely different architecture! Perhaps more than one!) of some kind? That is, I think perhaps you have the wrong dissassembler... (how does the dissassembled version of the binary that matches the source you have look, compared to the source.) BillW -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body *** MESSAGE TRUNCATED *** .. .