Basic Computer Notions Software

Next A simple computer Instruction format Instruction format (cont'd) Machine instructions Machine instructions (cont'd) Machine instructions (cont'd) Machine instructions (cont'd) Machine instructions (cont'd) Machine-language Programming 10 of 50 Machine-language Programming (cont'd) Machine-language Programming (cont'd) Machine-language Programming (cont'd) Machine-language Programming (cont'd) Machine-language Programming (cont'd) Machine-language Programming (cont'd) Machine-language Programming (cont'd) Machine-language Programming (cont'd) Machine-language Programming (cont'd) Machine-language Programming (cont'd) Machine-language Programming (cont'd) Machine-language Programming (cont'd) Machine-language Programming (cont'd) Machine-language Programming (cont'd) Machine-language Programming (cont'd) Machine-language Programming (cont'd) Machine-language Programming (cont'd) Machine-language Programming (cont'd) Machine-language Programming (cont'd) Machine-language Programming (cont'd) Sample data Using an ‘intelligent’ computer Using a not-so-intelligent computer Using an ‘English-like’ query system Using a highly interactive system Using a highly interactive system (cont'd) Using a highly interactive system (cont'd) Using a highly interactive system (cont'd) Using SQL (Structured Query Language) Using a report-generation language Using a general-purpose high-level programming language Using assembler language Compilers and interpreters Compilers and interpreters (cont'd) Types of software Operating systems Operating systems are very complex Operating systems need to be very robust Consequences Consequences (cont'd)

Machine-language Programming (cont'd)

First we'll replace the elegant If/Then/Else structure by a combination of If and Goto which correspond more closely to the available machine instructions.
	TOTAL = SCORE1 + SCORE2
	IF(TOTAL.LE.50) THEN
	    GRADE = 'F'
	  ELSE
	    GRADE = 'P'
	END IF
	STOP    
        TOTAL = SCORE1 + SCORE2
        IF(TOTAL.GT.50) GOTO PASS
        GRADE = 'F'
        GOTO END
PASS:   GRADE = 'P'
END:    STOP


Start Next
Bacon home page
R. Funnell
Last modified: Thu, 2007 Mar 15 08:35:42

Slide show generated from sw.html by Weasel 2007 Mar 15