Dashboard > Boy Scouts Troop 11 > ... > 04 Meeting of ... -- Install Operating Systems > Instruction Set
  Boy Scouts Troop 11 Log In   View a printable version of the current page.  
  Instruction Set
Added by Larry Talley, last edited by Larry Talley on Apr 16, 2007  (view change)
Labels: 
(None)

The set of fundamental operations that a computer is engineered to perform are known as it's instruction set. The fundamental operations of a computer tend to be very primitive operations; that is, each operation does very little, and it takes a lot of operations to accomplish significant work. But these fundamental operations can be done very quickly.

This small sample computes the sum of the integers from 1 to 1000

        mov      #0,sum     ; set sum to 0
        mov      #1,num     ; set num to 1
loop:   add      num,sum    ; add num to sum
        add      #1,num     ; add 1 to num
        cmp      num,#1000  ; compare num to 1000
        ble      loop       ; if num <= 1000, go back to 'loop'
        halt                ; end of program. stop running

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.2 Build:#807 May 20, 2007) - Bug/feature request - Contact Administrators