Link to home
Start Free TrialLog in
Avatar of omyurs
omyurs

asked on

Where to get 8086 ASM program code examples ?

Hi

I dont know even abc of 8086 ASM language. But i want learn some basic fundamentals of it. so that i can write and understand programs like these...

1. Addition of two 16bit numbers: sum 16 bit (also multiplication,division,substraction)

2. Addition of two 16bit numbers: sum 16 bit or more (also multiplication,division,substraction)

3. Sorting a list in ascending and dscending order.

4. Counting number of elements in a list (a,b,c,d,e, answer is 5)
 
5. One's compliment, 2's compliment etc...

AND what software/assembler/debugger to use and from where i can download it. How to see output/result of my program on output seceen.

Is there any web resource (or you can write with explaining each instruction).

Explanantion of every instruction is must so that i can understand what this instruction is doing..

its urgent I kindly request every expert to please contribute ...
Thanx
ASKER CERTIFIED SOLUTION
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of furqanchandio
furqanchandio

for addition simply

mov ax, < 16 bit number>
mov bx, < second 16 number >
add ax,bx  ; for addition
sub ax,bx, ;for subtraction
mul ax,bx  ; for multiplication
div ax,bx ; for division


for answers greater than 16 bit the result goes to DX register
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hey

This webpage is loaded with examples (source code examples) they will help you a lot in your learning process.
Link: http://www.emu8086.com/vb/index_asm.html

Also try visiting the home page, there you will find a great IDE for Assembly, a reference (for instructions, interrupts and much more)
Link: http://www.emu8086.com

If you are a beginner you will love this website, if you are an expert you will love it also (contains lots of procedures ;) )

Best Regards
Mr. Huwaidi