Thursday, September 8, 2011
lecture
lbinary
bits 0, 1
machine language: 0100111 10001 100111
add 5 and 6
next level:
assembly language
move into A the value 5
move into B the value 6
add A and B and store the result in A
MOV AX, 5
MOV BX, 6
ADD AX, BX
An assembler program (first written in machine language) takes as input some text consisting of assembly language, puts out output of 0100100111001
C++, Java, JavaScript, Visual Basic, Python: programming languages. On a higher level than assembly language.
Visual Basic:
For I = 1 To 10
MsgBox "Hello!"
Next
100: MOV AX, 1
108: SAY "Hello!"
ADD AX, 1
CMP AX, 11
JNE 108
this is a loop
2 different ways of translating a computer program:
* compiling : will give me an EXE
* interpreting
Subscribe to:
Post Comments (Atom)
Eric Fruchter
ReplyDeleteDaniel Bodner
ReplyDeleteKelly Gutierrez
ReplyDelete