Initial
This commit is contained in:
23
as68hc11/Main.cpp
Normal file
23
as68hc11/Main.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#include <common/windows.hpp>
|
||||
#include <as68hc11/asm6811.hpp>
|
||||
|
||||
int PASCAL WinMain(HINSTANCE hInstance,HINSTANCE /*hPrevInstance*/,LPSTR /*lpszCmdLine*/,int /*nCmdShow*/)
|
||||
{
|
||||
M68Assembler m68Assembler;
|
||||
bool resultCode;
|
||||
|
||||
resultCode=m68Assembler.assemble("code\\test9.asm");
|
||||
if(!resultCode)
|
||||
{
|
||||
::OutputDebugString("Compilation Failed\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
::OutputDebugString( String("Success ")+String().fromInt(m68Assembler.codeSize())+String(" bytes\n"));
|
||||
}
|
||||
|
||||
// m68Assembler.assemble("test7.asm");
|
||||
// m68Assembler.assemble("test8.asm");
|
||||
::OutputDebugString(m68Assembler.strLastMessage()+String("\n"));
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user