From: "Peter \"Firefly\" Lund" <firefly@diku.dk>
Subject: Re: Alpha AXP is dead
Date: Fri, 5 Jan 2007 14:50:16 +0100 [thread overview]
Message-ID: <Pine.LNX.4.61.0701051407210.26592@ask.diku.dk> (raw)
In-Reply-To: <5070r7F1el5f5U2@mid.individual.net>
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
next prev parent reply other threads:[~2007-01-05 13:50 UTC|newest]
Thread overview: 95+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-08 0:11 Alpha AXP is dead tohris
2006-11-08 0:25 ` Tom Linden
2006-11-08 4:00 ` thursday
2006-11-08 15:27 ` tohris
2006-11-08 22:14 ` Stefaan A Eeckels
2006-11-08 15:38 ` Tom Linden
2006-11-09 7:18 ` glen herrmannsfeldt
2006-11-09 23:52 ` Tom Linden
2006-11-13 7:53 ` glen herrmannsfeldt
2006-12-22 9:32 ` Peter "Firefly" Lund
2006-12-22 13:59 ` jmfbahciv
2006-12-23 15:58 ` Peter "Firefly" Lund
2006-12-24 13:30 ` jmfbahciv
2006-12-24 16:05 ` John DeRosa
2006-12-25 8:32 ` Peter "Firefly" Lund
2006-12-25 13:39 ` jmfbahciv
2006-12-25 14:53 ` Peter "Firefly" Lund
2006-12-26 12:52 ` jmfbahciv
2006-12-27 19:16 ` Robert Deininger
2006-12-28 12:55 ` jmfbahciv
2006-12-28 15:50 ` Robert Deininger
2006-12-29 12:39 ` jmfbahciv
2006-12-28 19:21 ` jls
2006-12-26 16:44 ` John DeRosa
2006-12-28 10:01 ` Peter "Firefly" Lund
2006-12-28 15:16 ` John DeRosa
2006-12-25 13:31 ` jmfbahciv
2006-12-26 17:00 ` John DeRosa
2006-12-27 12:08 ` jmfbahciv
2006-12-28 10:09 ` Peter "Firefly" Lund
2006-12-28 15:28 ` John DeRosa
2006-12-28 15:32 ` John DeRosa
2006-12-28 16:19 ` Peter "Firefly" Lund
2006-12-28 21:45 ` John DeRosa
2006-12-29 9:33 ` Peter "Firefly" Lund
2006-12-29 16:15 ` John DeRosa
2006-12-28 16:46 ` Peter "Firefly" Lund
2006-12-28 21:58 ` John DeRosa
2006-12-29 9:29 ` Peter "Firefly" Lund
2006-12-29 17:19 ` John DeRosa
2006-12-29 13:01 ` jmfbahciv
2006-12-29 17:22 ` John DeRosa
2006-12-30 4:51 ` prep
2006-12-30 12:24 ` John DeRosa
2006-12-22 9:30 ` Peter "Firefly" Lund
2006-12-22 14:05 ` jmfbahciv
2006-12-23 15:56 ` Peter "Firefly" Lund
2006-12-24 13:27 ` jmfbahciv
2006-12-25 8:41 ` Peter "Firefly" Lund
2006-12-25 13:52 ` jmfbahciv
2006-12-25 14:46 ` Peter "Firefly" Lund
2006-12-26 12:58 ` jmfbahciv
2006-12-26 14:17 ` Peter "Firefly" Lund
2006-12-27 12:00 ` jmfbahciv
2006-12-23 0:43 ` Richard Tomkins
2006-12-24 18:26 ` Richard Tomkins
2006-12-25 12:57 ` jmfbahciv
2006-12-26 17:03 ` John DeRosa
2006-12-27 3:20 ` William Pechter
2006-12-27 7:00 ` prep
2006-12-27 11:18 ` tohris
2006-12-27 19:58 ` Robert Deininger
2006-12-28 13:00 ` jmfbahciv
2006-12-28 16:07 ` Robert Deininger
2006-12-29 12:57 ` jmfbahciv
2006-12-29 15:09 ` ChrisQuayle
2006-12-28 10:16 ` Peter "Firefly" Lund
2006-12-29 1:06 ` Bob Koehler
2006-12-29 13:05 ` jmfbahciv
2006-12-29 17:08 ` Robert Deininger
2007-01-02 14:18 ` Bob Koehler
2007-01-03 12:45 ` jmfbahciv
2006-12-30 4:44 ` prep
2006-12-27 13:08 ` William Pechter
2006-12-27 12:09 ` jmfbahciv
2006-12-27 13:09 ` William Pechter
2006-12-27 14:27 ` John DeRosa
2006-12-30 4:46 ` prep
2007-01-04 18:57 ` Eric Smith
2007-01-05 1:51 ` Tom Linden
2007-01-05 4:12 ` glen herrmannsfeldt
2007-01-05 14:46 ` Bob Koehler
2007-01-08 14:39 ` Galen
2007-01-08 22:31 ` Bob Koehler
2007-01-09 17:46 ` John DeRosa
2007-01-09 11:52 ` jmfbahciv
2007-01-05 12:45 ` Peter "Firefly" Lund
2007-01-05 13:06 ` Bill Gunshannon
2007-01-05 13:50 ` Peter "Firefly" Lund [this message]
2006-11-17 2:02 ` David J Dachtera
2006-11-17 12:44 ` prep
2006-11-19 1:24 ` David J Dachtera
2006-11-17 19:22 ` Bob Kaplow
2006-11-18 11:34 ` Patrick MOREAU, DTI Athis ex CENA, Tel: 01.69.57.68.40
2006-12-22 9:38 ` Peter "Firefly" Lund
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox