Week 1 Notes - CINS 113: Logic, Design and Programming Fall...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
CINS 113: Logic, Design and Programming Fall 2009
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Machine Language •Within the computer everything is done with switches that are either on (1) or off (0). •The only instructions the computer really understands are a sequence of 1s and 0s. •This is called machine language , and each type of CPU model has its own machine code or instruction set. •Programming in machine language (e.g. 1001101001 ) is very tedious, and the program is not portable .
Background image of page 2
Machine Language 00101011011000011110101011 11010001000001110110100001 00101001010100110010010101 01001101011011110101001000 01011101010101110101010101 01010111101010000101110100 0110101010100101010100010 Machine Code 10110101010100101010100010 01111101000100100000001111 01110101101011010101000000 11010101010100010001001010 00001111000100010101000000 11010101001010010100110010 10100101000100100000101010 01010010101001000101101111
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Assembly Language •Things are easier with an assembly language as ones and zeros are replaced with more readable commands: mov ax, 061h push ax •These programs still need converted to machine language before the computer can do anything with it. This is the job of the assembler . •However, the assembly language is still specific to one type of computer.
Background image of page 4
Assembly Language assemble r .begin .org 2048 a_start .equ 3000 ld length,% be done addcc %r1,-4,%r1 00101101010000111010 01100011000000111101 00101010001010101010 10101010100101010101 01001011010100000101 01001010101010100001 Source File (Assembly Code) Executable File (Machine Code) addcc %r1,%r2,%r4 ld %r4,%r5 ba loop addcc %r3,%r5,%r3 done: jmpl %r15+4,%r0 01010010100100101010 00000111001001010000 00011101011011110101 01010010000001001010 10101010101001010010 10010101011101010010
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
High-Level Languages High-Level languages allow programmers to write code that is much closer to the written language, and the language is not specific to any type of computer. •These programs are converted to assembly language or
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/03/2010 for the course CINS 61N taught by Professor Davidbrodin during the Spring '10 term at Ivy Tech Community College.

Page1 / 25

Week 1 Notes - CINS 113: Logic, Design and Programming Fall...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online