Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Assembly Hello World.asm tutorial in MASM

Loading...

Sign in or sign up now!
24,184
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 30, 2009

simple and sweet

here is the code:

.386
.model flat, stdcall
option casemap:none

include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\kernel32.lib
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib

.data

msg db "Hello world!!!", 0
cpt db "MY FIRST PROGRAM!!!", 0

.code
start:

invoke MessageBox, NULL, addr msg, addr cpt, MB_OK + MB_ICONINFORMATION


invoke ExitProcess, NULL

end start

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 6 dislikes

Link to this comment:

Share to:

Top Comments

  • @Caveej Says the guy who obviously searched about ASM...

  • great tutorial thanks dude

see all

All Comments (47)

Sign In or Sign Up now to post a comment!
  • dude.. do you know open a file to read. the filename must be enter by user.

  • @Gelid97 I think you mean opcodes, not bytecodes. Bytecodes are what Java or Python is "compiled" into. Opcodes are numbers the CPU uses for operations. Bytecodes I believe are run inside of a virtual machine such as a Java VM.

  • @gruntlover2 .586 or .686 .586 should work on Pentium or higher processors. I think .686 is going to compile x64 bit code but I am not sure on that. Let me know if you find out.

  • thanks¡¡ 

  • you are starting the program with .386.. i have a core i5 processor. what should i type over there?

  • @Gelid97 Well byte code is just one byte instructions like pop push ect but they can not the not be executed by the cpu. What you are talking about is called object code. Bytecode is executed by a virtual machine or just in time compiler. Object code is executed directly by the cpu. And I made a mistake in my comment. The .net languages are not even compiled until runtime. You can see this if you open up a executable file in a HEX editor made with any of the .net language.

  • @gruntlover2 WELL actually, every program is made of bytecode. Bytecode is directly convertible with ASM. ASM is just an easier way to write bytecode, just like every other programming language. However, ASM is the closest you'll get to the hardware, while .NET is very diluted compared to the bytecode. That is to say, .NET and ASM are just different ways of writing bytecode, my point being that .NET is no different than ASM, or bytecode. They are not seperate, but rather two faces of the same.

  • @Kazm1k Well actually alot of programs now are made with the .net languages and the are compiled into byte code. They are only converted into machine code on runtime

  • Nice tut but how the hell would make a Windows app in asm?

  • @artistdigital You can use assembly code from within a C program. Just type _asm{ assembly code goes here }

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more