[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Opcode Instruction Question
I think that the word Program Status and Processor Status can be
confusing to us.
My point is that Processor Status is probably the same as Program Status
which it is not part of the register. Processor Status is 8-bit for 65xxx
because it has only 7 or 8 flags. I do not discuss general information
which are opcodes, operands, variables, etc.
Please try to answer my question below.
How many flags and 8/16/32 bits in Processor Status do Intel, 68K,
PowerPC, Z80, 8080, other microprocessors have? It is very clear question.
Please advise.
--
Yours Truly,
Bryan Parkoff
BParkoff@satx.rr.com
"David Empson" <dempson@actrix.gen.nz> wrote in message
1fbi30f.1xysyq7nidugzN%dempson@actrix.gen.nz">news:1fbi30f.1xysyq7nidugzN%dempson@actrix.gen.nz...
> David Empson <dempson@actrix.gen.nz> wrote:
>
> > Linards Ticmanis <ticmanis@coli.uni-sb.de> wrote:
> >
> > > Bryan Parkoff wrote:
> > > > I understand now. All 65xxx use only 8-bit for program status
> > > > (P). Is it true that Intel x86 have 16-bit for program status, but
> > > > you said it is only 8-bit?
> > > > Is it correct that 68K use 16-bit for program status?
> > >
> > > The length of the operands has nothing to do with the length of the
> > > status word.
> >
> > Another oddball processor I've encountered, though I haven't programmed
> > it (other people at work have done): the Atmel AVR family.
> >
> > It is an 8-bit micro (probably with an 8-bit status register). It has a
> > Harvard architecture with separate instruction and data address spaces.
> > The data space is addressed has 8 bits per memory location, while the
> > instruction space has 12 bits per memory location (using Flash memory
> > which is internal to the MCU).
> >
> > The "opcode" in this case may be up to 12 bits, with operand data being
> > included in the first instruction word in some cases, or with additional
> > 12-bit words being fetched for operand data in other cases.
>
> I've had an E-Mail message from Jonathan Pratt, who points out that I've
> misremembered the details here. The AVR has 16-bit program memory, with
> the operand always being embedded in the instruction word.
>
> I've apparently confused the AVR with the PIC, which has variants which
> use 12-bit, 14-bit and 16-bit instruction words.
>
> --
> David Empson
> dempson@actrix.gen.nz
>