Turn on thread page Beta
    • Thread Starter
    Offline

    0
    ReputationRep:
    Assembly Language

    Can anybody help I have to write a program in assembly language that can perform the 4 basic mathamatical functioins ie like a calculator on two numbers between 1 - 10 somebody must be able to help me please
    Offline

    1
    ReputationRep:
    http://www-scm.tees.ac.uk/users/a.cl...s/Lecture1.htm
    Offline

    1
    ReputationRep:
    (Original post by cass2658)
    Assembly Language

    Can anybody help I have to write a program in assembly language that can perform the 4 basic mathamatical functioins ie like a calculator on two numbers between 1 - 10 somebody must be able to help me please
    Which chipset?

    x86 is different from M68K, from PPC, from RISC, from MIPS, from ARM, from Z80, from 6502, from PIC Controllers.

    If you are writing it for the standard PC, then you will also need a method of inputting and outputting your data. You could write the entire thing to a bootloader, and use the direct BIOS video routines,

    The following is the assembly code just to print 1 character assuming direct BIOS access
    Code:
    MOV AX,0A40H
    XOR BX,BX
    MV CX,0001H
    INT 10H
    To read a character you can use Int 10H service 08H, and the character ASCII value is returned in AL
    Offline

    2
    ReputationRep:
    (Original post by cass2658)
    Assembly Language

    Can anybody help I have to write a program in assembly language that can perform the 4 basic mathamatical functioins ie like a calculator on two numbers between 1 - 10 somebody must be able to help me please
    As has already been mentioned, the term 'assembly language' means nothing without a context specifying the instruction set you are talking about.
 
 
 
Poll
Who is most responsible for your success at university

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reply
Hide
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.