Where to get 8086 ASM program code examples ?

Posted on 2005-05-02
Last Modified: 2007-12-19

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 ...
Question by:omyurs
    LVL 95

    Accepted Solution

    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: (I think you should start here).

    For a free assembly language compiler, see:
    LVL 4

    Expert Comment

    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
    LVL 4

    Assisted Solution

    hi again

    if u want learn assembly from scratch here is another link

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



    Expert Comment


    This webpage is loaded with examples (source code examples) they will help you a lot in your learning process.

    Also try visiting the home page, there you will find a great IDE for Assembly, a reference (for instructions, interrupts and much more)

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Suggested Solutions

    Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
    DECT technology has become a popular standard for wireless voice communication. DECT devices are not likely to be affected by other electronic devices and signals because they operate in a separate frequency-band.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now