Purebasic Inline Assembly, Hello world example.
Posted: Sat Aug 30, 2003 7:37 am
Using Purebasic Inline Assembly, I'm having trouble creating a hello world program. I'd like to create another tutorial in the Purebasic Inline Assembly tutorial that deals with opening a Window titled Hello World in Purebasic Inline assembly code. The only thing that anyone has been able to create in inline assembly is a message box that pops up.
Does anyone know how to create a simple window in Purebasic Inline assembly using pure assembly?
The only thing that anyone has been able to accomplish is Chris_B and the code below. Does anyone know how to modify this code to make it open a Window instead of a message box?:
Does anyone know how to create a simple window in Purebasic Inline assembly using pure assembly?
The only thing that anyone has been able to accomplish is Chris_B and the code below. Does anyone know how to modify this code to make it open a Window instead of a message box?:
Code: Select all
; Remember to enable Inline ASM support
caption.s="Win32 Assembly"
message.s="Hi! I'm the example program!"
!extrn "__imp__MessageBoxA@16" as MessageBox:dword
PUSH 0
PUSH caption
PUSH message
PUSH 0
CALL [MessageBox]
end