There are some things you need to program in Assembly Language
Anyone familiar with the Language "C" will recognize "Hello World!". It is a very short simple program that when executed does nothing but print out "Hello World!". Its' purpose was there, and is here: to verify your tools work; and you can use them. Yes, it is a worthless program, but you should still assemble and run it.
With today's "modern" C compilers you can expect an executable program in the order of 20 to 50 thousand bytes long. Following is the Program in Assembly. It creates a .COM executable file that is 21 bytes long.
main: mov dx,datas ;DX=output start
mov ah,9 ;output to $
int 021
ret
datas: db "Hello World!$"
|
The easy way to get this program, or any other examples is to:
If you have Eric's A86 assemble you can assemble it with:
a86 hello.8
Almost instantly it will create: "hello.com" and "hello.sym".
The .sym file is used by Eric's Debug program, and for now we will not
use it. You can delete it.
hello.com is a working program. If you enter:
hello
The program will execute.
No doubt you will find more useful things about Assembly Language programming on the internet. I would like to have a page of links to the work of others. When I get a page of good links I will have a link to it here.
Here is an explanation of Hello and some suggestions about using DEBUG to step through it, and some variants.
The next sample programs are: pan which converts Phone Alphabet to Numbers. And adult. Really, you should look at pan next! But, if you are curious you can see samples of what "adult" does