CISC106 Lecture Notes - Lecture 1: Machine Code, Assembly Language, Complex Instruction Set Computing
Document Summary
All data are stored in sequences of 0s and 1s(binary forms) in units of bytes (8 bits) 2 bytes are used for large numbers. Need to know the instruction codes for the computer you are running. Fetch-read the next instruction from memory in the cpu. Instead of binary numbers it uses short words such as add, mul, mov, ld. Similar to machine language, each brand of cpu typically has its own assembly language. Allows you to create programs without knowing how the cpu works and without writing large numbers of low-level instructions. Use words that are easy to understand. Computers, however, cannot run high-level language programs. A high-level language program must be translated into a machine language program -0s and 1s. Complicated tasks- using already available libraries/ functions. Design- plan the solution to the problem. Code/development- translate the algorithm into a programming language. Test and correct- locate and remove any errors in the problem.