This is a ZX spectrum cross-compiler based on original Pasmo by (C) 2004-2005 Julián Albo.

Original Pasmo page: http://pasmo.speccy.org/
Source code: http://sourcecodebrowser.com/pasmo/

Pasmo2 features:
DLL export method implementation(C#):
[DllImport(@"Pasmo2.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "compile")]
public unsafe static extern int compile( 
    [MarshalAs(UnmanagedType.LPStr)] string compileArg,   //"--bin", "--tap"; terminated by NULL(0)
    [MarshalAs(UnmanagedType.LPStr)] string inAssembler,  //assembler source code
    IntPtr compiledOut,  // compiled Z80 code which can be placed into memory
    IntPtr codeSize,     // length of compiled Z80 code
    IntPtr errFileLine,
    IntPtr errFileName,
    IntPtr errReason
);


Example of usage: https://zxmak2.codeplex.com/SourceControl/latest#SRC/ZXMAK2.Hardware.Adlers/Views/Assembler/Compiler.cs

Last edited Nov 24, 2015 at 8:48 AM by Adlers, version 30