Explains machine language, assembly language, and higher-level languages like C/C++ for microprocessors, plus mnemonics, compilers, and assemblers, using the 8085 as an example.
Key Takeaways
- Processors only execute binary machine code, so higher-level or assembly code must be translated.
- Compilers translate higher-level languages like C/C++ into machine code, while assemblers translate assembly into machine code.
- Knowing C/C++ plus a processor's programming model enables programming many embedded devices.
- These fundamentals matter for embedded systems, robotics, and automation careers.
What the video covers
- Introduces the 8085 microprocessor lecture series and the topics covered: machine language, assembly language, higher-level language, mnemonics, compilers, and assemblers.
- Higher-level languages such as C and C++ are preferred by programmers for working with microprocessors and microcontrollers.
- Assembly language is based on the instruction set of a specific processor or controller, and each processor has its own instruction set.
- Mnemonics are short instruction codewords such as ADD B or MOV B,C that represent operations in assembly language.
- An example shows A = B + C written in C versus a sequence of MOV and ADD mnemonics in assembly.
- A compiler converts higher-level language into machine language and reports syntax errors.
- An assembler converts assembly language into machine language and can also report syntax or logical errors.
- Machine language is binary code (0s and 1s), the only form a processor directly understands.
- Writing directly in machine code is impractical because the binary sequences are hard to remember, especially across many processors.
- Learning C or C++ lets a programmer target many microprocessors or microcontrollers, provided they understand the target's programming model (its registers and resources).
Chapters
- 00:00Introduction and lecture series overview
- 00:34Higher-level languages for microprocessors
- 01:01Assembly language and instruction sets
- 01:35Mnemonics explained with 8085 examples
- 02:39Practical example: A = B + C in C vs assembly
- 03:34Role of compilers and assemblers
- 04:30What machine language is and why it is binary
- 05:30Why programmers use C/C++ instead of machine code
- 07:45Programming models and industry relevance
Full Transcript — Download SRT & Markdown
Speaker A
Welcome to engineering fun family. This video is a part of microprocessor 80085 video lecture series and in this video I'll be going to explain you what is machine language, what is higher level language, what is assembly language as
Speaker A
well as there are few basic terminologies like what is pneummonics, what is compiler and what is the job of assembler. So all those things that we are deal with to study over here step by step. So here when we talk about higher
Speaker A
level language then programmer prefers higher level language in terms of C, C++ generally when we work with microprocessor and microcontroller.
Speaker A
But when we talk about assembly language so that is what a language which is there with processor or controller and that is based on instructions. So with all the processors and all the controllers there is instruction set which is there with different processor
Speaker A
and controller and based on that instruction set you can program microprocessor or microcontroller that will be there based on assembly language. So let us try to understand all those things by practical example so that will get more clear. So my dear
Speaker A
students when we talk about higher level language then that is there in terms of C or C++ for most of the microprocessor and microcontroller in industry C1 people are using C and CPP for programming of microprocessor and microcontroller and when we talk about
Speaker A
assembly language. So in assembly language programming is done with the use of pneummonics of processor or controller and pneummonics of processor or controller identifies instructions.
Speaker A
So I'll explain you what is the meaning of pneummonics. My dear students pneummonics means instructions code right. So the way we write instructions that is referred as pneummonics. For example, for 80085 microprocessor, when we write add B, so add B is referred as
Speaker A
pneummonics for operation of addition of accumulator and B. When you write nemonics move B, comma C, it indicates you will be moving data of C into B. And this is what nemonics of movement of data from C to B. So pneummonics
Speaker A
explains you the code word of instructions for different microprocessor and microcontroller. Different pneummonics are there right?
Speaker A
Let me explain you all those things by practical example. So that will be more clear. So let us say we are talking about higher level language. So in C CPP we can directly write A is equals to B +
Speaker A
C. Right? So what it does it will be adding B and C and answer will get stored in A. But when you want to do this operation in assembly language at that time you will have to write assembly code based on pneummonics. So
Speaker A
I'll show you one practical example. You see more A, B that is written. What it means B is going inside A. After that add C is written. What it means? C will get added with A and answer will get
Speaker A
stored in A. After that again I have written move B comma A. What it means? A will get transferred into B. So that is how we are writing instructions by pneummonics and this is what assembly language that you can say and this
Speaker A
assembly language pneummonics are different for different microprocessor and microcontroller. Here we are talking about 8085 microprocessor. So with that these are the pneummonics which are available. Now my job is to explain you what is machine language. So you cannot
Speaker A
have directly machine language here there is a need of compiler and assembler. My dear students here when we talk about higher level language. So higher level language that can be converted into machine language by using compiler. So main job of compiler is to
Speaker A
convert higher level language into machine code or machine language. And compiler will also show you errors when you write syntax error. Right? So compiler job that is to convert higher level language into machine language.
Speaker A
And when we talk about assembler then assembler is converting assembly language into machine language. So my dear students assembler job is similar to compiler. Only thing is when you write code in assembly language at the time assembler will convert this
Speaker A
assembly language into machine language and assembler even can show you error as if there is syntax error or some logical error. But you should know in interview there are questions that is coming many times like can you explain me what is
Speaker A
compiler? So its job is to convert higher level language into machine language and assembler's job is to convert assembly language into machine language. Now my dear students what is machine language. So dear students machine language is lower level language
Speaker A
that is there in terms of binary. See microprocessor cannot understand this higher level language or assembly language. It only understands things based on binary 10 data. So what we do is we convert these programs in terms of binary code and that binary code is
Speaker A
referred as machine language. Right? The reason is we cannot even remember how 10 1 0 that we need to write with respect to different instructions. Right? So my dear students here what we do here we write programs in assembly language with
Speaker A
80085 but as if you want to program AVR microcontroller then there are many instructions and if you want to operate with five to seven different microprocessor or microcontroller then is it possible that you can remember instructions for that many processor and
Speaker A
controller simply no right so what you do is you learn only few languages packages like CC CPP. So by using CC CPP we can be able to program in a single way and by using that single way by
Speaker A
using compiler we convert that C language code into machine code. Machine code is always there in terms of binary.
Speaker A
The reason is microprocessor and microcontroller does not understands any other thing than zeros and ones. here why don't we write code in terms of machine code see you don't write codes in terms of machine code the reason is
Speaker A
it is very complicated to remember that many numbers how can you remember 0 1 01 sequence for different instructions you cannot remember sequence of zeros and ones right you can understand some pneummonics of assembly language or you can understand
Speaker A
programming language like C or CPP if you give efforts in that direction then you can be able to program many things right. So if you have knowledge about C or CPP definitely you are eligible to program any microprocessor or
Speaker A
microcontroller in that situation only thing is you will have to understand what is programming model of given microprocessor or microcontroller programming model means how many resistors are there which is available for programming purpose. Once you understand that programming model, you
Speaker A
can directly start making programs by using C and CPP. So when you go in industries of embedded system at that time it is very essential that you should know C and C++ language.
Speaker A
By having that language you can be able to program many other embedded devices. Right? Only thing is you should know how to compile the code and whatever errors are there in compiler you just resolve it and you can load it into
Speaker A
processor or controller. Right? The reason is machine language that could be easily understood by processor or controller. So that is how things are there with microprocessor as well as microcontroller. This video is in general video right where there are few
Speaker A
basic things that you must know. The reason is this world is getting digitized and in future many other things that will come in front of you which is there based on programming and you will have to train many other things
Speaker A
in terms of robotics or automation in which also this fundamentals are very essential. I hope you have understood this. Thank you so much for watching this
Topics:machine languageassembly languagehigher level language8085 microprocessormnemonicscompilerassemblerembedded systemsmicrocontrollerC programming











