Hendrik van Rooyen wrote:
It works well - and it is surprisingly fast too...
And its easy if the opcodes are all say one byte,
else you need an opcode length field too, and fancier
parsing.
Often (always?) RISC architectures' instruction+operand lengths are
fixed to the word size of the
Tom Plunket wrote:
Often (always?) RISC architectures' instruction+operand lengths
are fixed to the word size of the machine. E.g. the MIPS 3000 and
4000 were 32 bits for every instruction, and PC was always a
^^
multiple of four.
Intels aren't
Bjoern Schliessmann wrote:
Intels aren't RISC, are they?
Not the ones in PCs. The OP didn't specify the CPU that's being used,
however.
-tom!
--
--
http://mail.python.org/mailman/listinfo/python-list
Bjoern Schliessmann wrote:
Tom Plunket wrote:
Often (always?) RISC architectures' instruction+operand lengths
are fixed to the word size of the machine. E.g. the MIPS 3000 and
4000 were 32 bits for every instruction, and PC was always a
^^
MRAB wrote:
I think that PC referred to the CPU's Program Counter.
Argh, thanks. :)
The x86 CPUs if typical Windows PCs aren't RISC but Intel also
manufacture X-Scale (ARM core) processors which are.
Okay, sorry for lack of precision. I was referring to x86.
Regards,
Björn
--
BOFH
Tom Plunket wrote:
Bjoern Schliessmann wrote:
Intels aren't RISC, are they?
Not the ones in PCs. The OP didn't specify the CPU that's being used,
however.
Well it was meant for a small micro-controller, the PIC-14-series,
e.g. PIC16F877.
I already build a simulator for this device in
If I'm not mistaken, I read somewhere that you can use
function-names/references in lists and/or dictionaries, but now I can't
find it anymore.
The idea is to build a simulator for some kind of micro controller (just
as a general practise, I expect it too be very slow ;-).
opcodes ={
1:
On 2007-01-02, Stef Mientki [EMAIL PROTECTED] wrote:
If I'm not mistaken, I read somewhere that you can use
function-names/references in lists and/or dictionaries, but
now I can't find it anymore.
The idea is to build a simulator for some kind of micro
controller (just as a general
Stef Mientki wrote:
If I'm not mistaken, I read somewhere that you can use
function-names/references in lists and/or dictionaries, but now I can't
find it anymore.
The idea is to build a simulator for some kind of micro controller (just
as a general practise, I expect it too be very slow
Yes. Functions are (so called) first class objects. You can refer to one
by name, and pass that reference around in variables and other data
structures.
That said, your code above won't work as written because function1 is
not in existence when you refer to it.
Yes, I just found that
Stef Mientki a écrit :
If I'm not mistaken, I read somewhere that you can use
function-names/references in lists and/or dictionaries,
Python's functions are objects too - instances of the (builtin) class
'function'. So yes, you can use them like any other object (store them
in containers,
Stef Mientki [EMAIL PROTECTED] wrote:
If I'm not mistaken, I read somewhere that you can use
function-names/references in lists and/or dictionaries, but now I can't
find it anymore.
The idea is to build a simulator for some kind of micro controller (just
as a general practise, I
12 matches
Mail list logo