Re: pyasm 0.2 - dynamic x86 assembler for python

olsongt_at_bellatlantic.net
Date: 03/09/05


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



Relevant Pages

  • Script doing right?
    ... I have a script the returns only the internal address from IIS. ... ' 0 arg is command can be ... ' 2 arg is username ... elseif Then ...
    (microsoft.public.scripting.vbscript)
  • Re: Find and Replace letters inside a file
    ... This is the barebones version of a script that I ... Dim fso, ts, s, arg, fil, fpath, s1 ... Set fso = CreateObject ... s1 = Replace(s, vbCrLf, vbCr) ...
    (microsoft.public.scripting.vbscript)
  • Re: Can you have a command line arg with a workbook?
    ... msgbox "Missing arg" ... I created a subroutine named "TestMacro" that takes two text string ... vbs script and then a second space followed by my final argument. ... > If it possible to read an arg from the command line in VBA? ...
    (microsoft.public.excel.programming)
  • Re: [opensuse] Another Bash scripting question
    ... 17 May 2008 23:30:51 Randall R Schulz wrote: ... So if your script was something like this: ... for arg; do ...
    (SuSE)
  • Re: how to stop return from proc in tcl
    ... the arg to -command is a script that is evaluated at the global scope asyncronously when a button is pressed anything returned will just be ignored. ... # other events until the acess event to your variable happens # then work is resumed. ... vwait::return #::return was created or changed ...
    (comp.lang.tcl)