write a program to simulate

Post on 10-Nov-2015

13 Views

Category:

Documents

4 Downloads

Preview:

Click to see full reader

DESCRIPTION

NA

TRANSCRIPT

  • 5/18/2015 WriteaprogramtosimulateaDecimalUpcountertodisplay0099.|CODECARTA

    http://codecarta.blogspot.in/2014/02/writeprogramtosimulatedecimalup.html 1/3

    CODECARTACODECARTA|CODEENCYCLOPEDIA|REFERANCE|WORKSHOP|C/C++

    CATEGORIES

    4thsemester(27)5thsemester(3)ADA(13)AssemblyLevelLanguage(12)bachelorofengineering(30)basic(1)basicmathematics(2)BE(45)beginners(10)Clanguage(20)CLanguageProgramming(5)C++Language(5)c++program(9)calculations(7)CCPLabprograming(3)ComputerProgrammingLab(3)computerscience(30)DAALabProgramming(13)Data Structure and C++laboratoryProgram(6)Data Structure and C++labotaryProgram(5)Design and Analysis ofalgorithm(14)downloadable(5)engineeringsyllabus(4)FirstYear(5)MASM(12)Microprocessor(12)Microprocessor lab program(12)simpleprogram(6)System Software & OSLaboratory(5)Unixprogram(4)

    TRENDPOSTS

    PROGRAM1(QuadraticEquation)|FirstYearEngineeringComputer Lab

    Programming|VTUSyllabus2013|

    Friday,February21,2014

    5:11PM| Postedbyshamnascv|

    ASSUMECS:CODE

    CODESEGMENTcodesegmentstartsSTART:MOVBX,00initializecounterBXas00REPEAT:PUSHBXsavetheBXvalueinstackmemory.MOVAH,07HBIOSservicenumbertoclearthescreenMOVAL,00HNumberoflinestoscroll00blankscreen.MOVBH,0FHattributeofcharacter0Fwhiteand00blackMOVCX,00HCH=00YcoordinateofupperleftcornerandCL=00X

    coordinateofupperrightcornerMOVDH,31HNumberofrowsLowerrightrowMOVDL,79HNumberofrowsLowerrightrowINT10HBIOSinterrupttoclearthescreenisinvokedMOVAH,02HBIOSservicenumbertosetthecursorMOVBH,00HsetvideoPagenumberto0MOVDH,0CHstorerownumberinDH(Ycoordinate)MOVDL,25Hstorethecolumnnumber(X)inDLregisterINT10HBIOSinterrupttosetthecursorisinvokedPOPBXpopthecountervaluestoredinstacktoBXMOVAL,BLcopythe8bit(1byte)countervalueinBLtoALAAMconvertHexvalueinALtounpackedBCDADDAX,3030Hadd3030HtoAX,togettheASCIIcodeoftheconvertedno.MOVCX,AXstoreAXvaluetemporallyinCXMOVDL,AHdisplaytheupperdigitofthecountervalueonthescreenMOVAH,02Husing02Hserviceno.withDOS21Hinterrupt.INT21HMOVDL,CLdisplaythelowerdigitofthecountervalueonthescreenMOVAH,02Husing02Hserviceno.withDOS21HinterruptINT21H

    WRITE A PROGRAM TO SIMULATE ADECIMALUPCOUNTERTODISPLAY0099.

    HOME

  • 5/18/2015 WriteaprogramtosimulateaDecimalUpcountertodisplay0099.|CODECARTA

    http://codecarta.blogspot.in/2014/02/writeprogramtosimulatedecimalup.html 2/3

    Read an alphanumeric characterand display its equivalent ASCIIcodeatthecenterofthescreen.

    Search a key element in a list ofn 16bit numbers using theBinarysearchalgorithm.

    Write two ALPmodules stored intwodifferent files onemodule isto read a character from thekeyboardand theotherone is todisplayacharacter.Usetheabovetwo modules to read a string ofcharacters from the keyboardterminated by the carriage returnandprintthestringonthedisplayinthenextline.

    Lab ProgramNo:13|OCTAL

    IMPLEMENTATIONUsingOperatorOverloading|2nd Year DataStructurewithC/C++Labotary|

    SortagivensetofnnumbersinascendingorderusingtheBubbleSortalgorithm.

    Compute nCr using recursiveprocedure.Assumethatnandrarenonnegativeintegers.

    PROGRAM2(SparseMatrix)|SecondYearEngineeringComputer Lab

    Programming|VTUSyllabus2013|

    Program ( INFIX toPOSTFIX)|Second Year Datastructure/cLabProgramming|VTUSyllabus2013|

    Lab ProgramNo:3|Evaluationof postfixExpression|2ndYear DataStructure with

    C/C++Labotary|

    BLOGGERNEWS

    AUTHOR

    View LUQMAN's profile

    CALLDELAYcallDELAYprocedure,toprovidesomedelayaftereachcounterdisplay

    INCBLincrementBL(countervalue)by1CMPBL,100comparethiscountervalueinBLwith100JNEREPEATifthecountervalueisMasm10a.asmD:\MASM>Link10a.objD:\MASM>10a.exe

    +1 Recommend this on Google

    0comments:

    PostaComment

    YouareveryImportanttoUs...STAYTUNE...

    Labels: 4th semester, Assembly Level Language, bachelor of engineering, BE, computer science, Decimal upcounter,MASM,Microprocessor,Microprocessorlabprogram,vtuEngineeringsyllabus2013

  • 5/18/2015 WriteaprogramtosimulateaDecimalUpcountertodisplay0099.|CODECARTA

    http://codecarta.blogspot.in/2014/02/writeprogramtosimulatedecimalup.html 3/3

    NewerPost OlderPostHome

    Subscribeto:PostComments(Atom)

    FOLLOWERS

    JointhissitewithGoogleFriendConnect

    Members(5)

    Alreadyamember?Signin

    BLOGARCHIVE

    2015(1)2014(37)

    October(1)August(4)July(20)February(12)

    aprogramtocreateafile(inputfile)andtodel...

    ReadapairofinputcoordinatesinBCDandmove...

    WriteaprogramtosimulateaDecimalUpcountert...

    Readthecurrenttimefromthesystemanddisplay...

    ComputenCrusingrecursiveprocedure.Assumethat...

    Readyournamefromthekeyboardanddisplayitat...

    Readtwostrings,storetheminlocationsSTR1and...

    Reverseagivenstringandcheckwhetheritisap...

    Readanalphanumericcharacteranddisplayitsequ...

    Sortagivensetofnnumbersinascendingorder...

    WritetwoALPmodulesstoredintwodifferentfile...

    Searchakeyelementinalistofn16bitnumbe...

    2013(20)

    Enteryourcomment...

    Commentas: GoogleAccount

    Publish Preview

    Linkstothispost

    CreateaLink

    Copyright2015.AllRightsReserved...

top related