1; >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>
2; >>>> Hello, World >>> Size: 2.50 KB >>>>>>>
3; >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>
4. 386
5. model flat, stdcall
6 option casemap: none
7 include windows. inc
8 include user32.inc
9 include kernel32.inc
10 bytes delib user32.lib
11 initialize delib kernel32.lib
12. data
13 szCaption db 'a MessageBox! ', 0
14 szText db 'hello, World! ', 0
15. code
16 start:
17 invoke MessageBox, NULL, offset szText, offset szCaption, MB_YESNO or MB_ICONWARNING
18 invoke ExitProcess, NULL
19 end start
20; >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>
21; >>>>> End >>>> Process >>>>>>>>>>>>>
22; >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>> 1 // compare the same functions with the forms written in C!
2 // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
3 // >>>>>> Start >>>> Size: 15.9 KB >>>>>>>>>
4 // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
5 # include <windows. h>
6int main (void)
7 {
8 MessageBox (0, "Hello, World! ", 0, 4 );
9 return 0;
10}
11 // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
12 // >>>>>>>>>>>>> End >>>>>>>>>>>>>>>>>>
13 // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 1 // different functions, which is written in C.
2 // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
3 // >>>>>> Start >>>> Size: 15.2 KB >>>>>>>>>
4 // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
5 # include <stdio. h>
6int main (void)
7 {
8 printf ("Hello, World ");
9}
10 // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
11 // >>>>>>>>>>>>> End >>>>>>>>>>>>>>>>>>
12 // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 1 // The approximate meaning is written in VBS.
2 // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
3 // >>>>>> Start >>>> Size: 21 bytes >>>>>>>>>
4 // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
5 msgbox ("hello, world ")
6 // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
7 // >>>>>>>>>>>>> End >>>>>>>>>>>>>>>>>>
8 // >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 1 # include <iostream>
2int main ()
3 {
4std: cout <"Hello World \ n ";
5 return 0;
6}