[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 14683
  • Last Modified:

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
0
omyurs
Asked:
omyurs
  • 2
2 Solutions
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
I took an assembly class a couple years back.  I can't stress enough how important it is to understand binary.  And that there are the 4 commonly referenced registers.  AX, BX, CX, DX.  And numerous other things.  (I've not done much in assembly beyond that class, but I found a few tutorials I thought were pretty good).

Here's some:
http://thsun1.jinr.ru/%7Ealvladim/man/asm.html (I think you should start here).
http://maven.smith.edu/~thiebaut/classes/231/231.html#Reading
http://www.techtutorials.info/assembly.html
http://win32assembly.online.fr/tutorials.html
http://www.intelligentedu.com/newly_researched_free_training/Assembly.html

For a free assembly language compiler, see:
http://nasm.sourceforge.net/wakka.php?wakka=HomePage
0
 
furqanchandioCommented:
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
0
 
furqanchandioCommented:
hi again

if u want learn assembly from scratch here is another link

http://www.xs4all.nl/~smit/asm01001.htm

u may also want the book Art of assembly language
its electronic edition is avaible free here

http://www.szceac.com/tech/AoA/AoA_En/

cheers

0
 
st214387Commented:
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
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now