Will You Add?
#1 in Business Subscribe Email Print

You are here: Home > Computers and Technology > Computers and Technology > History of the Computer - Machine Code Programs Part 3 of 3

Tags

  • going
  • require
  • instruction complete
  • first instruction
  • branch checks

  • Links

  • Aromatherapy: A Very Affordable Gift
  • 3 Reasons Why Learning About Body Language Will Increase Your Chance of Success With Women
  • Explore the Business Benefits of the Foreign Exchange (Forex) Market!
  • Will You Add? - History of the Computer - Machine Code Programs Part 3 of 3

    Knock, knock. Who's There? Your Target Market, Are You Listening?
    Have you ever had a conversation with a person who wasn't listening to anything you said? This one-way communication experience is a big turn-off and many times frustrating to cope with at the time. Is this occurring in your marketing? Oops, no one wants to think of their business as turning a deaf ear to their market. Yet it can be easy to do since most of us
    we enable the last 3 bits, 010 to the ADDRESS register. Now the next instruction will come from location 010, not the next sequential address. This is the Branch out of sequence.

    With an address of 010, the next instruction is the ADD again, which adds another 3 to register 010 totaling 6. We again subtract 1 from the count, check fo

    First Time Home Buyer Loans Made Easy
    When it comes to firsttime home buyer loans, a little research can save you thousands of dollars over the life of your mortgage.A wise consumer selects a mortgage lender prior to shopping for a home. You see, firsttime home buyer loans can end up costing you a lot more than you bargained for if you shop for your home first.What often happens is you fall in love wi
    Now let's look at the program again.

    (0)000 - 000 011 000 STORE
    (1)001 - 000 100 001 STORE
    (2)010 - 001 000 010 ADD
    (3)011 - 010 001 001 SUBTRACT
    (4)100 - 011 001 010 BRANCH
    (5)101 - 100 000 000 STOP

    We start with the instruction in location 000. The processor requests this instruction by setting the address register to 000 and sending a request to memory. The first instruction is loaded into the P register. The first 3 bits tell the logic this is a STORE instruction, and enable gates to take the value in the next 3 bits, and place it in the register decoded from the last 3 bits. We place 3 in register 0. Instruction complete, get next instruction (add 1 to address register).

    The next instruction, from 001, is also a STORE, and we load a value of 4 into register 1.

    The third instruction, from 010, is an ADD. We add the contents of register 000 (3) to register 010 (initially 0) giving 3 in register 010.

    Next, from 011, we have a SUBTRACT, which is used to count down. This would normally not require a separate instruction, but we use it here to demonstrate the principle. We subtract a value of 1 from register 001 going from 4 to 3.

    The next instruction, from 100, the BRANCH, checks the count, in register 001 (second 3 bits) looking for not equal to zero. The data in register 3 is not zero, so we enable the last 3 bits, 010 to the ADDRESS register. Now the next instruction will come from location 010, not the next sequential address. This is the Branch out of sequence.

    With an address of 010, the next instruction is the ADD again, which adds another 3 to register 010 totaling 6. We again subtract 1 from the count, check for

    Reasons To Invest In Mumbai Property Market
    India is the largest country of south Asian region. Its economy has shown a constant upward trend in the last decade or so. Most of this gain in economy is started after India emerged as one of the I.T giant of the world. The positive effects of this development in economy of the country are perceptible in every business sector including the property market. Mumbai, which is ac
    ss register to 000 and sending a request to memory. The first instruction is loaded into the P register. The first 3 bits tell the logic this is a STORE instruction, and enable gates to take the value in the next 3 bits, and place it in the register decoded from the last 3 bits. We place 3 in register 0. Instruction complete, get next instruction (add 1 to address register).

    The next instruction, from 001, is also a STORE, and we load a value of 4 into register 1.

    The third instruction, from 010, is an ADD. We add the contents of register 000 (3) to register 010 (initially 0) giving 3 in register 010.

    Next, from 011, we have a SUBTRACT, which is used to count down. This would normally not require a separate instruction, but we use it here to demonstrate the principle. We subtract a value of 1 from register 001 going from 4 to 3.

    The next instruction, from 100, the BRANCH, checks the count, in register 001 (second 3 bits) looking for not equal to zero. The data in register 3 is not zero, so we enable the last 3 bits, 010 to the ADDRESS register. Now the next instruction will come from location 010, not the next sequential address. This is the Branch out of sequence.

    With an address of 010, the next instruction is the ADD again, which adds another 3 to register 010 totaling 6. We again subtract 1 from the count, check fo

    Website Promotion Plan - A Key To Success Of A Site
    Website promotion plan totally depends on the objectives of the website that is a junction of three things such as business, Internet and customer. Website promotion plan is required to make an effective website. Best promotional plan helps you to get more traffic to your site but before implementing a plan you should be aware of all aspects of your website.Owners should
    ruction (add 1 to address register).

    The next instruction, from 001, is also a STORE, and we load a value of 4 into register 1.

    The third instruction, from 010, is an ADD. We add the contents of register 000 (3) to register 010 (initially 0) giving 3 in register 010.

    Next, from 011, we have a SUBTRACT, which is used to count down. This would normally not require a separate instruction, but we use it here to demonstrate the principle. We subtract a value of 1 from register 001 going from 4 to 3.

    The next instruction, from 100, the BRANCH, checks the count, in register 001 (second 3 bits) looking for not equal to zero. The data in register 3 is not zero, so we enable the last 3 bits, 010 to the ADDRESS register. Now the next instruction will come from location 010, not the next sequential address. This is the Branch out of sequence.

    With an address of 010, the next instruction is the ADD again, which adds another 3 to register 010 totaling 6. We again subtract 1 from the count, check fo

    Public Speaking: The Terror of Being Judged!
    And that's really what it's all about, isn't it? Even now, chances are, your stomach knots when you recall the time you had to stand up in front of the whole class and Give a Talk. Or you feel queasy just remembering that other childhood disaster--the dreaded Piano Recital.What if I make a Mistake? Or worse, totally Blank Out? What if I don't Play Perfectly--which transl
    down. This would normally not require a separate instruction, but we use it here to demonstrate the principle. We subtract a value of 1 from register 001 going from 4 to 3.

    The next instruction, from 100, the BRANCH, checks the count, in register 001 (second 3 bits) looking for not equal to zero. The data in register 3 is not zero, so we enable the last 3 bits, 010 to the ADDRESS register. Now the next instruction will come from location 010, not the next sequential address. This is the Branch out of sequence.

    With an address of 010, the next instruction is the ADD again, which adds another 3 to register 010 totaling 6. We again subtract 1 from the count, check fo

    Why Generate Real Estate Leads Online?
    Many real estate agents are stuck in out of date and inefficient marketing strategies. One of the possible reasons may be credited to the fact that more novel and inexperienced agents are encouraged by brokers and coaches that work closely with them to use the archaic methods.These mentor figures mean well, however may not use the best nor most efficient marketing techniques f
    we enable the last 3 bits, 010 to the ADDRESS register. Now the next instruction will come from location 010, not the next sequential address. This is the Branch out of sequence.

    With an address of 010, the next instruction is the ADD again, which adds another 3 to register 010 totaling 6. We again subtract 1 from the count, check for not zero, and return once more to address 010. when we have added 3 on the fourth time through the loop, the count goes to zero, the BRANCH test fails, so, instead of branching, we take the next instruction in sequence, and STOP.

    With any luck the RESULT in register 010 will be 12, which is the area of a 3x4 rectangle. We can calculate any area by substituting the dimensions in the STORE instructions.

    The area around the instruction decode area is where the ingenuity of the logic designer shows. With a fixed number of bits in the instruction to play with, though of course more than the 9 bits we have used here, he must make the most of what there is. Working against this is the cost of incorporating complicated logic in the overall layout of the system, and the possible problems which may arise with unforeseen applications, or sequences of instructions.

    Also to be considered is the instruction stack, or pipeline. As we saw in the article on cache memory, a speed increase can be obtained by fetching 4 instructions at once. We can go one step further and load these instructions into the processor. It is then possible to start working on the next instructions before the current one is finished. However if the current instruction performs a branch, this work must be discarded.

    HTTP = HTML link (for blogs, profiles,phorums):
    <a href="http://www.atriclecheck.com/article/170360/atriclecheck-History-of-the-Computer--Machine-Code-Programs-Part-3-of-3.html">History of the Computer - Machine Code Programs Part 3 of 3</a>

    BB link (for phorums):
    [url=http://www.atriclecheck.com/article/170360/atriclecheck-History-of-the-Computer--Machine-Code-Programs-Part-3-of-3.html]History of the Computer - Machine Code Programs Part 3 of 3[/url]

    Related Articles:

    Identifying Potential in Ourselves and Others

    Investing: Wine

    How To Know If You Need Computer Memory

    Bookmark it: del.icio.us digg.com reddit.com netvouz.com google.com yahoo.com technorati.com furl.net bloglines.com socialdust.com ma.gnolia.com newsvine.com slashdot.org simpy.com shadows.com blinklist.com