Question:
example of assembly language program that disply out the word hellow world?
2011-03-22 02:51:55 UTC
example of assembly language program that disply out the word hellow world?
Three answers:
2011-03-22 03:42:54 UTC
Remove the leading ... used for indentation.





.model small

.stack 100h



.data

msg db 'Hello, world!$'



.code

start:

.....mov ah, 09h ; Display the message

.....lea dx, msg

.....int 21h

.....mov ax, 4C00h ; Terminate the executable

.....int 21h

end start

.
Rineesh
2011-03-22 10:57:57 UTC
What micro-controller(MC) are you using? Anyways, the first step is to get the hardware interface right. Once you've done that you can write the program, compile it and load the hex file into your MC's ROM. I'm assuming that you are using 8051 based MC. Check out the link I've given below, should solve your problem.



Cheers~~
tbshmkr
2011-03-22 12:42:18 UTC
Hello World (Assembly Intel x86 Linux)

- http://en.literateprograms.org/Hello_World_%28Assembly_Intel_x86_Linux%29

=

Hello World (Assembly Intel x86 NetBSD)

- http://en.literateprograms.org/Hello_World_%28Assembly_Intel_x86_NetBSD%29


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...