>
> #################################
> ## 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()

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to