[ANN] pyasm 0.2 - dynamic x86 assembler for python
Grant Olson
olsongt at verizon.net
Wed Mar 9 00:59:01 CET 2005
PyASM by Grant Olson <olsongt at verizon.net>
=============================================
PyASM is a dynamic x86 assembler for python. By "dynamic", I
mean that it can be used to generate inline assembly
functions in python at runtime without requiring object file
generation or linkage.
New in version 0.2
------------------
+ Linux Support. Will work in Linux environments as well as Windows.
+ Simplified Interface. You only need to use one function
to generate code.
+ Preliminary Documentation.
More information and downloads are available on my homepage:
http://mysite.verizon.net/olsongt
#################################
## helloWorld.py
## assembly hello world script
#################################
from pyasm import pyasm
pyasm(globals(),r"""
!CHARS hello_str 'Hello world!\n\0'
!PROC hello_world PYTHON
!ARG self
!ARG args
PUSH hello_str
CALL PySys_WriteStdout
ADD ESP, 0x4
MOV EAX,PyNone
ADD [EAX],1
!ENDPROC
""")
hello_world()
More information about the Python-announce-list
mailing list