2.4.3
Assembly & Machine Code
Assembly Language
Assembly Language
Assembly language was the first type of programming language to come about after machine code programming.
![Illustrative background for Assembly language](https://image-v2.cdn.app.senecalearning.com/2018-11/5ba7904e-90e6-4cca-8e5f-bd6069a8fa39/old-computer-,h_400,q_80,w_640.jpg)
![Illustrative background for Assembly language ?? "content](https://image-v2.cdn.app.senecalearning.com/2018-11/5ba7904e-90e6-4cca-8e5f-bd6069a8fa39/old-computer-,h_400,q_80,w_640.jpg)
Assembly language
Assembly language
- Assembly language was the first type of programming language to come about after machine code programming.
- Assembly language uses 3 letter mnemonics for key actions (such as INP for input), this makes them easier to remember for a developer.
![Illustrative background for Little man computer](https://image-v2.cdn.app.senecalearning.com/2020-08/c0458919-455e-4ce2-8b92-ee5421a7daf0/retro-4728778_1920-min,h_400,q_80,w_640.png)
![Illustrative background for Little man computer ?? "content](https://image-v2.cdn.app.senecalearning.com/2020-08/c0458919-455e-4ce2-8b92-ee5421a7daf0/retro-4728778_1920-min,h_400,q_80,w_640.png)
Little man computer
Little man computer
- The Little Man Computer (LMC) is a virtual implementation of a Von Neumann processor that allows people to test out a basic assembly language compiler.
- This allows users to see how the registers and memory locations are used in a processor.
- The LMC has 11 assembly instructions.
![Illustrative background for content](https://image-v2.cdn.app.senecalearning.com/2020-08/eb414e9c-bb89-4a1f-9d77-937443074ebb/Screenshot%202020-08-20%20at%2010.41.39-min,h_400,q_80,w_640.png)
![Illustrative background for undefined ?? "content](https://image-v2.cdn.app.senecalearning.com/2020-08/eb414e9c-bb89-4a1f-9d77-937443074ebb/Screenshot%202020-08-20%20at%2010.41.39-min,h_400,q_80,w_640.png)
![Illustrative background for Little man computer addressing](https://image-v2.cdn.app.senecalearning.com/2020-08/f5413156-9eb4-4d9a-a385-c4e597e275b7/old-computer,h_400,q_80,w_640.png)
![Illustrative background for Little man computer addressing ?? "content](https://image-v2.cdn.app.senecalearning.com/2020-08/f5413156-9eb4-4d9a-a385-c4e597e275b7/old-computer,h_400,q_80,w_640.png)
Little man computer addressing
Little man computer addressing
- Assembly language is low level and can use different types of address to access memory locations.
- The LMC only supports direct addressing of memory locations.
Machine Code Instructions
Machine Code Instructions
Machine code is a low-level language that controls the CPU.
![Illustrative background for Machine code instructions](https://image-v2.cdn.app.senecalearning.com/courseImages/physics/4.3.5 - Digital Circuits/binary-min,h_400,q_80,w_640.jpg)
![Illustrative background for Machine code instructions ?? "content](https://image-v2.cdn.app.senecalearning.com/courseImages/physics/4.3.5 - Digital Circuits/binary-min,h_400,q_80,w_640.jpg)
Machine code instructions
Machine code instructions
- When your program is run it is converted to machine code instructions.
- Machine code instructions will have different sized instructions based on their architecture.
- 64-bit processors will have instructions that are 64bit in size.
- These machine code instructions are split into sections.
![Illustrative background for Machine code instructions cont.](https://image-v2.cdn.app.senecalearning.com/2020-08/0e4554c7-a59f-43f7-8eb7-07b24c3d588d/monitor-binary-network,h_400,q_80,w_640.jpg)
![Illustrative background for Machine code instructions cont. ?? "content](https://image-v2.cdn.app.senecalearning.com/2020-08/0e4554c7-a59f-43f7-8eb7-07b24c3d588d/monitor-binary-network,h_400,q_80,w_640.jpg)
Machine code instructions cont.
Machine code instructions cont.
- The first section is basic machine operation. This is the instruction to perform, such as addition, represented in binary.
- The second part is the addressing mode. The addressing mode is usually stored in two bits.
- The addressing mode tells the processor which type of addressing to use on the operand code or opcode for short.
- The final part of the instruction is the operand or opcode, which will be translated differently depending on the type of address mode used.
1Components of a Computer
1.1Structure & Function of the Processor
1.2Types of Processors
2Software & Software Development
2.1Systems Software
2.2Applications Generation
2.3Software Development
3Exchanging Data
3.1Compression, Encryption & Hashing
3.3Networks
4Data Types, Data Structures & Algorithms
4.1Data Types
5Legal, Moral, Cultural & Ethical Issues
5.1Computing Related Legislation
6Elements of Computational Thinking
6.1Thinking Abstractly
6.2Thinking Procedurally
6.3Thinking Logically
7Problem Solving & Programming
7.1Programming Techniques
7.2Programming Construction
Jump to other topics
1Components of a Computer
1.1Structure & Function of the Processor
1.2Types of Processors
2Software & Software Development
2.1Systems Software
2.2Applications Generation
2.3Software Development
3Exchanging Data
3.1Compression, Encryption & Hashing
3.3Networks
4Data Types, Data Structures & Algorithms
4.1Data Types
5Legal, Moral, Cultural & Ethical Issues
5.1Computing Related Legislation
6Elements of Computational Thinking
6.1Thinking Abstractly
6.2Thinking Procedurally
6.3Thinking Logically
7Problem Solving & Programming
7.1Programming Techniques
7.2Programming Construction
![Go student ad image](/en-GB/revision-notes/_next/image?url=%2Fen-GB%2Frevision-notes%2Fimages%2Fgo-student-uk-ad.jpg&w=640&q=100)
Unlock your full potential with GoStudent tutoring
Affordable 1:1 tutoring from the comfort of your home
Tutors are matched to your specific learning needs
30+ school subjects covered