Re: pyasm 0.2 - dynamic x86 assembler for python
olsongt_at_bellatlantic.net
Date: 03/09/05
- Next message: Steve Holden: "Re: Working on a log in script to my webpage"
- Previous message: M.E.Farmer: "Re: File call error message (double backslash)"
- In reply to: Grant Olson: "[ANN] pyasm 0.2 - dynamic x86 assembler for python"
- Next in thread: Stefan Behnel: "Re: pyasm 0.2 - dynamic x86 assembler for python"
- Reply: Stefan Behnel: "Re: pyasm 0.2 - dynamic x86 assembler for python"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 8 Mar 2005 16:01:45 -0800
>
> #################################
> ## helloWorld.py
> ## assembly hello world script
> #################################
DOH! The example file got truncated. Here it is.
#################################
## 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()
- Next message: Steve Holden: "Re: Working on a log in script to my webpage"
- Previous message: M.E.Farmer: "Re: File call error message (double backslash)"
- In reply to: Grant Olson: "[ANN] pyasm 0.2 - dynamic x86 assembler for python"
- Next in thread: Stefan Behnel: "Re: pyasm 0.2 - dynamic x86 assembler for python"
- Reply: Stefan Behnel: "Re: pyasm 0.2 - dynamic x86 assembler for python"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|