From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 1164f8,76fc4415064c7cfd X-Google-Attributes: gid1164f8,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!news.net.uni-c.dk!munin.diku.dk!ask.diku.dk!firefly From: "Peter \"Firefly\" Lund" Newsgroups: comp.sys.dec Subject: Re: Alpha AXP is dead Date: Fri, 5 Jan 2007 14:50:16 +0100 Organization: Department of Computer Science, University of Copenhagen Message-ID: References: <1162944706.306784.51170@k70g2000cwa.googlegroups.com> <5070r7F1el5f5U2@mid.individual.net> NNTP-Posting-Host: ask.diku.dk Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: munin.diku.dk 1168005016 10234 130.225.96.225 (5 Jan 2007 13:50:16 GMT) X-Complaints-To: news@diku.dk NNTP-Posting-Date: Fri, 5 Jan 2007 13:50:16 +0000 (UTC) In-Reply-To: <5070r7F1el5f5U2@mid.individual.net> Xref: g2news2.google.com comp.sys.dec:1883 On Fri, 5 Jan 2007, Bill Gunshannon wrote: >> Some of it were even in the 8080 and the Z80. > > What "string" and "BCD" support was in the Z80 or the 8080? 8080: DAA (Decimal adjust Acc) -- after a BCD addition/subtraction. There's a flag that notes whether the last arithmetic operation was an addition or a subtraction. 8085: DAA -- same as 8085 Z80: BCD support: DAA -- same as 8080 RLD -- rotate left digit RRD -- rotate right digit RLD/RRD rotate the three nibbles in the lower part of the Accumulator (A) and whatever byte in memory HL points to. The upper nibble of A is untouched. Block scan: CPD -- compare and decrement CPDR -- compare, decrement, and repeat CPI -- compare and increment CPIR -- compare, increment, and repeat cmp A and (HL) (i.e. perform A-(HL), discard result but keep flags) increment/decrement HL decrement BC maybe loop until BC == 0 or A was equal to (HL), that is until Z is set. Block copy/fill LDD -- load and decrement LDDR -- load, decrement, and repeat LDI -- load and increment LDIR -- load, increment, and repeat (DE) <-- (HL) increment/decrement DE and HL decrement BC maybe loop until BC == 0 This can be used to fill blocks as well. There are faster ways to block fill but they require tricks such as relocating the stack to the end of the block to be filled and then pushing lots of register pairs. Port I/O: IND -- input and decrement INDR -- input, decrement, and repeat INI -- input and increment INIR -- input, increment, and repeat (HL) <-- read from port C increment/decrement HL decrement B maybe loop until B == 0 OTDR -- output, decrement, and repeat OTIR -- output, increment, and repeat OUTD -- output and decrement OUTI -- output and increment output (HL) to port C increment/decrement HL decrement B maybe loop until B == 0 8051, thrown in as a bonus: DA A -- Decimal-adjust Accumulator for Addition SWAP -- swap nibbles within the Accumulator -Peter