Re: Writing an assembler in Python

2018-06-19 Thread dieter
iansuder...@gmail.com writes: > What does the code look like to insert assembler into python and how does > that code send information back to python. Python is a "high level" language: it tries hard to hide many "low level" details such as addresses and memory management. Thus, it is quite far

Re: Writing an assembler in Python

2018-06-19 Thread Dan Stromberg
On Tue, Jun 19, 2018 at 7:33 PM, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > On Tue, 19 Jun 2018 17:41:11 -0700, iansuderman wrote: > > > What does the code look like to insert assembler into python and how > > does that code send information back to python. > > > > It seems y

Re: Writing an assembler in Python

2018-06-19 Thread Steven D'Aprano
On Tue, 19 Jun 2018 17:41:11 -0700, iansuderman wrote: > What does the code look like to insert assembler into python and how > does that code send information back to python. > > It seems you wrote that python is a good compiler for assembly. If > possible I want to add assembly to my python.

Re: Writing an assembler in Python

2018-06-19 Thread iansuderman
What does the code look like to insert assembler into python and how does that code send information back to python. It seems you wrote that python is a good compiler for assembly. If possible I want to add assembly to my python. -- https://mail.python.org/mailman/listinfo/python-list

Re: Writing an assembler in Python

2010-03-03 Thread member thudfoo
On Tue, Mar 2, 2010 at 10:52 PM, Gregory Ewing wrote: >> In article , >> Giorgos Tzampanakis   wrote: >> >>> I'm implementing a CPU that will run on an FPGA. I want to have a >>> (dead) simple assembler that will generate the machine code for >>> me. I want to use Python for that. Are there any li

Re: Writing an assembler in Python

2010-03-02 Thread Gregory Ewing
In article , Giorgos Tzampanakis wrote: I'm implementing a CPU that will run on an FPGA. I want to have a (dead) simple assembler that will generate the machine code for me. I want to use Python for that. Are there any libraries that can help me with the parsing of the assembly code? I wrote

Re: Writing an assembler in Python

2010-03-02 Thread Holger Mueller
Giorgos Tzampanakis wrote: > I'm implementing a CPU that will run on an FPGA. I want to have a > (dead) simple assembler that will generate the machine code for > me. I want to use Python for that. Are there any libraries that > can help me with the parsing of the assembly code? Why coding as

Re: Writing an assembler in Python

2010-03-02 Thread Albert van der Horst
In article , Giorgos Tzampanakis wrote: >I'm implementing a CPU that will run on an FPGA. I want to have a >(dead) simple assembler that will generate the machine code for >me. I want to use Python for that. Are there any libraries that >can help me with the parsing of the assembly code? I have

Re: Writing an assembler in Python

2010-02-23 Thread Lawrence D'Oliveiro
In message , Anh Hai Trinh wrote: > On Feb 23, 10:08 am, Lawrence D'Oliveiro > wrote: >> >> Let me suggest an alternative approach: use Python itself as the >> assembler. Call routines in your library to output the code. That way you >> have a language more powerful than any assembler. >> >> Se

Re: Writing an assembler in Python

2010-02-23 Thread Robert Kern
On 2010-02-22 21:47 PM, Ed Keith wrote: Subject: Re: Writing an assembler in Python Giorgos Tzampanakis wrote: I'm implementing a CPU that will run on an FPGA. I want to have a (dead) simple assembler that will generate the machine code for me. Let me suggest an alternative approach

Re: Writing an assembler in Python

2010-02-23 Thread Anh Hai Trinh
On Feb 23, 10:08 am, Lawrence D'Oliveiro wrote: > > Let me suggest an alternative approach: use Python itself as the assembler. > Call routines in your library to output the code. That way you have a > language more powerful than any assembler. > > See for an exa

Re: Writing an assembler in Python

2010-02-23 Thread mk
Giorgos Tzampanakis wrote: I'm implementing a CPU that will run on an FPGA. I want to have a (dead) simple assembler that will generate the machine code for me. I want to use Python for that. Are there any libraries that can help me with the parsing of the assembly code? I'm not sure about y

Re: Writing an assembler in Python

2010-02-22 Thread Tim Roberts
Paul Rubin wrote: > >Giorgos Tzampanakis writes: >> I'm implementing a CPU that will run on an FPGA. I want to have a >> (dead) simple assembler that will generate the machine code for >> me. I want to use Python for that. Are there any libraries that >> can help me with the parsing of the as

Re: Writing an assembler in Python

2010-02-22 Thread Ed Keith
> Subject: Re: Writing an assembler in Python > Giorgos > Tzampanakis wrote: > > > I'm implementing a CPU that will run on an FPGA. I > want to have a > > (dead) simple assembler that will generate the machine > code for > > me. > > Let me suggest

Re: Writing an assembler in Python

2010-02-22 Thread Lawrence D'Oliveiro
In message , Giorgos Tzampanakis wrote: > I'm implementing a CPU that will run on an FPGA. I want to have a > (dead) simple assembler that will generate the machine code for > me. Let me suggest an alternative approach: use Python itself as the assembler. Call routines in your library to output

Re: Writing an assembler in Python

2010-02-22 Thread Paul Rubin
Giorgos Tzampanakis writes: > I'm implementing a CPU that will run on an FPGA. I want to have a > (dead) simple assembler that will generate the machine code for > me. I want to use Python for that. Are there any libraries that > can help me with the parsing of the assembly code? One "dead si

Writing an assembler in Python

2010-02-22 Thread Giorgos Tzampanakis
I'm implementing a CPU that will run on an FPGA. I want to have a (dead) simple assembler that will generate the machine code for me. I want to use Python for that. Are there any libraries that can help me with the parsing of the assembly code? -- http://mail.python.org/mailman/listinfo/python