Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #3392

An unusual question...

Date 2011-04-17 13:15 +0100
From <wisecracker@tesco.net>
Subject An unusual question...
Newsgroups comp.lang.python
Message-ID <mailman.459.1303042503.9059.python-list@python.org> (permalink)

Show all headers | View raw


Hi coders...

Before I start I don`t expect an easy answer
except "No it can`t be done!".

I have not tried it yet, I`m only asking for opinions ATM.
(Except on the classic AMIGA and it DOES work for that!)

I only want it to work in Linux/?IX. Windblows does
not interest me at all.

OK here we go...

I can easily place a machine code, PURE binary,
routine into Python.

I can also find out where it is EXACTLY just as
easily so this is not my problem.

The problem is calling it!

If I wrote an Assembly(/Assembler) routine to call
this binary code using say the JMP instruction or
using PUSH absolute value and RET, and, call these
"Jump" using:-

os.system("/full//path/to/Jump <address_of_binary_in_ascii>")

can I expect a "segmentation error" OR because the
"Jump" command is already inside the Python terminal
would this be considered inside Python`s working memory
from the MMUs point of view?

TIA...



--
73...

Bazza, G0LCU...

Team AMIGA...

http://homepages.tesco.net/wisecracker/

http://main.aminet.net/search?readme=wisecracker

http://mikeos.berlios.de/

Back to comp.lang.python | Previous | NextNext in thread | Find similar


Thread

An unusual question... <wisecracker@tesco.net> - 2011-04-17 13:15 +0100
  Re: An unusual question... Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-04-17 15:22 +0000
  Re: An unusual question... sturlamolden <sturlamolden@yahoo.no> - 2011-04-17 09:13 -0700

csiph-web