473,326 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Controling the ALU

Hi

How can I control an ALU from a PC using Python?

Thanks!
Hola...

Como puedo controlar la ALU de un PC usando Pyhton?

Gracias!

--
Atentamente,

Cesar Andres Roldan Garcia
Presidente Comunidad Académica Microsoft Javeriana
Teléfono: 300 8169857
Cali - Colombia
Jul 18 '05 #1
5 2620
On 2005-03-31, Cesar Andres Roldan Garcia <ce**********@gmail.com> wrote:
How can I control an ALU from a PC using Python?


The ALU is buried pretty deep in the CPU. The ALU is part of
what is actually executing the instructions that _are_ Python.

--
Grant Edwards grante Yow! VICARIOUSLY
at experience some reason
visi.com to LIVE!!
Jul 18 '05 #2
Grant Edwards wrote:
On 2005-03-31, Cesar Andres Roldan Garcia <ce**********@gmail.com> wrote:

How can I control an ALU from a PC using Python?

The ALU is buried pretty deep in the CPU. The ALU is part of
what is actually executing the instructions that _are_ Python.

Maybe:

from __builtin__ import int as ALU
ALU.__add__(3,4)

7

Sorry ;-)

Michael

Jul 18 '05 #3
On Thu, 31 Mar 2005 20:42:30 -0000, Grant Edwards <gr****@visi.com> wrote:
On 2005-03-31, Cesar Andres Roldan Garcia <ce**********@gmail.com> wrote:
How can I control an ALU from a PC using Python?


The ALU is buried pretty deep in the CPU. The ALU is part of
what is actually executing the instructions that _are_ Python.

Unless "the" CPU is elsewhere and OP is talking about an ALU
on some circuit board/ICE thing that he
has an interface to that he didn't mention ;-)

Regards,
Bengt Richter
Jul 18 '05 #4
Cesar Andres Roldan Garcia wrote:
Hi

How can I control an ALU from a PC using Python?

Thanks!

Py>def PyAnswers(you)
.... your = you
.... If you want to control the ALU in the computer:
.... # maybe you can use assembler
.... pyasm
.... elif you want to control an external ALU:
.... # maybe with serial or parallel connection:
.... pyserial
.... pyparallel
.... elif you want to control the ALU in a PIC from the PIC:
.... # maybe try python assembler translater:
.... pyastra
.... else:
.... repost question with more content and detail.
Py> you = 'Cesar Andres Roldan Garcia'
Py> answer = PyAnswers(you)
Py> print answer

For further help please repost answer or the error message ;)
M.E.Farmer

Jul 18 '05 #5
>>>>> "Cesar" == Cesar Andres Roldan Garcia <ce**********@gmail.com> writes:

Cesar> Hi How can I control an ALU from a PC using Python?

Cesar> Thanks!
Cesar> Hola...

Cesar> Como puedo controlar la ALU de un PC usando Pyhton?

Cesar> Gracias!

Cesar> -- Atentamente,

Cesar> Cesar Andres Roldan Garcia Presidente Comunidad Académica
Cesar> Microsoft Javeriana Teléfono: 300 8169857 Cali - Colombia

For a loose value of 'using', you could do your numerically-intensive
work in C++, inline all the assembler necessary, and then fashion a
python module thereof using boost::python.
I wouldn't pretend to be capable of doing that at this very moment,
but if I had such a requirement, this would be my initial course.
Best,
Chris
Jul 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: James | last post by:
anyone know of a camera that can be controled with visual basic, i.e. zooming, shutter release, transfering picture to pc. -- 5khzgjf9e001@sneakemail.com
3
by: Oldbitcollector | last post by:
I'm a still new to visual basic, and I've hit a problem I can't find a workaround for. I'm attempting to open and close an Internet Explorer window using visual basic 6. I've got the open...
0
by: TeraNews | last post by:
I have a sample graph using GD::Graph::Lines, it's a simple X-Y line graph (www.bitmosphere.com/cgi-bin/graph.pl) I want to change the color of the graph border, and the tick lines (vertical and...
6
by: Liam Gibbs | last post by:
Does anyone know how to make input fields smaller, using a smaller font? I want to know how to make my textboxes and such like the ones at http://www.gracenote.com/music/ , but reading teh code...
5
by: Paul Daly (MCP) | last post by:
Hello, Situation: I have a drop down list on a main form in my program. I have another form for entering a new item that will reside in the drop down list of the main form. When the Add item...
6
by: Rafa³ | last post by:
Hi! I would like to make my program know how much memmory it consumes at runtime. At now I thought to do something like that: /* test.cpp */ #include <cstdlib> #include <stdio.h> unsigned...
1
by: Mohammed Abdel-Razzak | last post by:
Dear sirs I want you to give me link to some articles talking about controling the computer hardware from C#. But what I most need now: How can I open the CDRom from my C# application??? ...
5
by: David C. Allen | last post by:
I have a vb.net app that is controling excel 2000 thru the com interop interface. I have referenced the excel 9.0 library and have cut down the code in the problem subroutine to this: Dim...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.