---- START NEW MESSAGE --- Received: from cherry.ease.lsoft.com [209.119.0.109] by dpmail10.doteasy.com with ESMTP (SMTPD32-8.05) id AA8D42AA007C; Thu, 29 Jan 2004 20:16:13 -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 <8.00CC3F2E@cherry.ease.lsoft.com>; Thu, 29 Jan 2004 23:16:01 -0500 Received: from MITVMA.MIT.EDU by MITVMA.MIT.EDU (LISTSERV-TCP/IP release 1.8e) with spool id 9231 for PICLIST@MITVMA.MIT.EDU; Thu, 29 Jan 2004 23:15:55 -0500 Received: from MITVMA (NJE origin SMTP@MITVMA) by MITVMA.MIT.EDU (LMail V1.2d/1.8d) with BSMTP id 4625; Thu, 29 Jan 2004 23:14:22 -0500 Received: from relais.videotron.ca [24.201.245.36] by mitvma.mit.edu (IBM VM SMTP Level 430) via TCP with ESMTP ; Thu, 29 Jan 2004 23:14:21 EST X-Comment: mitvma.mit.edu: Mail was sent by relais.videotron.ca Received: from videotron.ca ([24.203.79.242]) by VL-MO-MR005.ip.videotron.ca (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0HSA00BICBOY80@VL-MO-MR005.ip.videotron.ca> for PICLIST@MITVMA.MIT.EDU; Thu, 29 Jan 2004 23:12:35 -0500 (EST) MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 0.5a (20040105) References: <2193429B07D9914D97216EBBAA6AB8BD1A0542@whitlam.corp.gli.com.au> Message-ID: <4019DBD2.60607@videotron.ca> Date: Thu, 29 Jan 2004 23:21:38 -0500 Reply-To: pic microcontroller discussion list Sender: pic microcontroller discussion list From: Gaston Gagnon Subject: Re: [PIC:] Disassemblers To: PICLIST@MITVMA.MIT.EDU In-Reply-To: <2193429B07D9914D97216EBBAA6AB8BD1A0542@whitlam.corp.gli.com.au> Precedence: list X-RCPT-TO: Status: U X-UIDL: 371856425 From my recollection of the Z80, they are registers within the processor: a ;which serve also as accumulator b,c,d,e,h,l ;each may contain one byte bc, de, hl ;each pair may contain a 16bit word (bc), (de), (hl) ;each par contain an address for indirect ;addressing purpose. Exemple: ld (bc),a ; transfer the content of register a at ; the address formed by bc Gaston Gagnon 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. > > They are from the disassembled code obviuously, but do they represent > specific registers. The example code that came with the disassembler used > them extensively so I gather they are some sort of standard register naming. > The source I have uses a different naming convention though and I'd like to > be able to correlate the two... > > Thanks in advance! > > >>-----Original Message----- >>From: Russell McMahon [SMTP:apptech@PARADISE.NET.NZ] >>Sent: Friday, January 30, 2004 10:29 AM >>To: PICLIST@MITVMA.MIT.EDU >>Subject: Re: [PIC:] Disassemblers >> >> >>>Here's an example of the disassembled code (from the "good" code, not >> >>the >> >>>potentially "bad" code) >>> >>> ld (bc),a ; 0000 02 . >>> call c,Xdc02 ; 0001 dc 02 dc \.\ >>> ld (bc),a ; 0004 02 . >>> call c,Xdc02 ; 0005 dc 02 dc \.\ >>> ld (bc),a ; 0008 02 . >> -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details. .