20 years ago, I was using a commodore Amiga. Last night I asked myself; could Python be run on such a computer?
[IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 14[/IMGNOTHUMB]
I browsed python.org, and found the first relase of a Python for the Amiga to be Python 1.4.
When I look at:
I see that this release need 2MB of RAM, Kickstart 2.04 and a motorola 68020 CPU
My Amiga computer is long gone, so I do not really need to be too strict on the specifications. I plan to run Python on an emulated Amiga with the requirements specificed.
A nice Amiga emulator is:
To run the Amiga, you need two things; The Amiga 2.04 Kickstart ROM and Workbench 2.04. These are still copyrighted, and you can get them from here:
When you have aquired the rom and the Workbench file, download the .lha file from:
You might wonder, how to extract a .lha file? I use the 7zip:
Extract this to a directory (and rememeber the path to this directory for later)
To test Python on the Amiga I wrote the following test program:
I saved this in the Python-1.4 directory as test1.py
I selected the computer to be an Amiga 500+ in WinUae:
[IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 15[/IMGNOTHUMB]
I made sure the system had 2MB of memory...
[IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 16[/IMGNOTHUMB]
...and that it used a 68020 CPU:
[IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 17[/IMGNOTHUMB]
I select the Kickstart 2.04 file...
[IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 18[/IMGNOTHUMB]
...and I set it to use the Workbench 2.1 operating system:
[IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 19[/IMGNOTHUMB]
Finally, I sat the directory of Python1-4 to be the harddrive directory. You can call it "python" and the volum name as "p":
[IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 20[/IMGNOTHUMB]
To start the Amiga you click "Start"
It takes some time to load, at least compared to today.
[IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 21[/IMGNOTHUMB]
Once the operating system is loaded, click on Workbench2.1 icon, then on System and then on "Shell" (which is the command line tool in the Workbench)
Select the harddrive with python by typing:
p:
then:
cd Python1-4
Here you can run the Python interpreter by typing:
Python_020_IEEE test1.py (to run the test1.py program)
or just : Python_020_IEEE for the normal Python shell.
That's it! It is slow, but then again, it is an old computer.
[IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 14[/IMGNOTHUMB]
I browsed python.org, and found the first relase of a Python for the Amiga to be Python 1.4.
When I look at:
I see that this release need 2MB of RAM, Kickstart 2.04 and a motorola 68020 CPU
My Amiga computer is long gone, so I do not really need to be too strict on the specifications. I plan to run Python on an emulated Amiga with the requirements specificed.
A nice Amiga emulator is:
To run the Amiga, you need two things; The Amiga 2.04 Kickstart ROM and Workbench 2.04. These are still copyrighted, and you can get them from here:
When you have aquired the rom and the Workbench file, download the .lha file from:
You might wonder, how to extract a .lha file? I use the 7zip:
Extract this to a directory (and rememeber the path to this directory for later)
To test Python on the Amiga I wrote the following test program:
Code:
for i in range(5): print "hello amiga!"
I selected the computer to be an Amiga 500+ in WinUae:
[IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 15[/IMGNOTHUMB]
I made sure the system had 2MB of memory...
[IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 16[/IMGNOTHUMB]
...and that it used a 68020 CPU:
[IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 17[/IMGNOTHUMB]
I select the Kickstart 2.04 file...
[IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 18[/IMGNOTHUMB]
...and I set it to use the Workbench 2.1 operating system:
[IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 19[/IMGNOTHUMB]
Finally, I sat the directory of Python1-4 to be the harddrive directory. You can call it "python" and the volum name as "p":
[IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 20[/IMGNOTHUMB]
To start the Amiga you click "Start"
It takes some time to load, at least compared to today.
[IMGNOTHUMB]http://bytes.com/attachment.php? attachmentid=71 21[/IMGNOTHUMB]
Once the operating system is loaded, click on Workbench2.1 icon, then on System and then on "Shell" (which is the command line tool in the Workbench)
Select the harddrive with python by typing:
p:
then:
cd Python1-4
Here you can run the Python interpreter by typing:
Python_020_IEEE test1.py (to run the test1.py program)
or just : Python_020_IEEE for the normal Python shell.
That's it! It is slow, but then again, it is an old computer.
Comment