954,479 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

YASM assembly code snippets

Here you can share assembly code snippets for the YASM assembler and you can also help people with their YASM assembly programming and share 32-bit apps. :) I also have a problem when I do this (It is supposed to generate a very simple hello in the cmd(DOS/command.com/command prompt):

MOV AH,09
MOV DX,text
INT 21h

MOV AH,4Ch
MOV AL,0; Exit code 0
INT 21h

text: db "Hello!",24h; 24h = "$"


Thanks in advance!

euwbah
Newbie Poster
2 posts since May 2011
Reputation Points: 10
Solved Threads: 0
 

Is that the entire program? Or just a snippet from it?

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

That's the whole program which is quite simple because I'm just testing how it would work out, but, the only thing it could give me is some random hearts, paragraph characters and spades with lots of foreign characters, and finally, at the end, the "Hello!" came out. I'm using an Intel core 2 Duo proccessor, which I don't really know whether if it is a 32-bit processor or a 64-bit processor... I don't really understand this because it's just cramming the DOS with unwanted stuff...

euwbah
Newbie Poster
2 posts since May 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: