Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,26 @@
|
|||
;;; hellowin.asm
|
||||
;;;
|
||||
;;; nasm -fwin32 hellowin.asm
|
||||
;;; link -subsystem:console -out:hellowin.exe -nodefaultlib -entry:main \
|
||||
;;; hellowin.obj user32.lib kernel32.lib
|
||||
|
||||
global _main
|
||||
extern _MessageBoxA@16
|
||||
extern _ExitProcess@4
|
||||
|
||||
MessageBox equ _MessageBoxA@16
|
||||
ExitProcess equ _ExitProcess@4
|
||||
|
||||
section .text
|
||||
_main:
|
||||
push 0 ; MB_OK
|
||||
push title ;
|
||||
push message ;
|
||||
push 0 ;
|
||||
call MessageBox ; eax = MessageBox(0,message,title,MB_OK);
|
||||
push eax ;
|
||||
call ExitProcess ; ExitProcess(eax);
|
||||
message:
|
||||
db 'Goodbye, World',0
|
||||
title:
|
||||
db 'RosettaCode sample',0
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
;use win32ax for 32 bit
|
||||
;use win64ax for 64 bit
|
||||
include 'win64ax.inc'
|
||||
|
||||
.code
|
||||
start:
|
||||
invoke MessageBox,HWND_DESKTOP,"Goodbye,World!","Goodbye",MB_OK
|
||||
invoke ExitProcess,0
|
||||
.end start
|
||||
Loading…
Add table
Add a link
Reference in a new issue