Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

What is a local variable vs a global variable? What is a register, what does it

ID: 3750477 • Letter: W

Question

What is a local variable vs a global variable? What is a register, what does it do, and what is its purpose? Know the various flag registers and what do they do EX: V bit -overflow flag What bi ts are available in the status register and what do they do? Wh at is a subroutine, how is it called, how is it terminated and how does that affect program flow? What kinds of memory are there? now the various kinds of addressing modes and which kinds of pointers can access them. What is a pointer and what does it do? What is an opcode and an operand? What kinds of pointers are there? Are any of them limited in any way? Are there any that are unrestricted? Microprocessor vs microcontroller What is an assembler and what does it do? What is a compiler and what does it do? What is an embedded system? What is an IDE and what are its capabilities? How does it differ from a compiler or assembler? What is a CPU? Know the structure of a CPU and the purpose each of its components serve. What is an ALU and what does it do? What controls the ALU? Where must data be stored to be processed by the ALU? Where are results from the ALU stored? What is an instruction vs a directive? What is the syntax structure of assembly instructions and directives? What is an integrated circuit? Know the different kinds of RAM, what they do. What is volatile vs non-volatile memory What pieces of information are necessary to store or retrieve data. Know a few of the most basic instructions and what they do EX: MOV, ADD, LPM, What is a call and how does it work?

Explanation / Answer

Answer)

1) Global Variable is the one which is declared outside any defined function and can be accessed by any function in the program whereas the local variables are declared inside the function and are only accessible inside the function only.

2) A register is a small set of data holding place which is a part of the computer processor. This is meant for keeping instruction, storage addresses or any of the kind of data's.

3) The flag register is otherwise referred to as a status register in the Intel x86 microprocessor which contains the processor's current state. The overflow flag is used as the wider registers help to retain compatibility with the smaller predecessors.

4) Flag bits are available in the status register and are used for an indication whether an instruction has been terminated or not, in case of any mismatch or termination of the statement.

6) There are different kind of memory like:

RAM, ROM, SRAM, DRAM etc

Please note as per Chegg Policy, a minimum of 1 question is to be answered or 4 subparts, We did 5.

Hit like if you find the answer useful. :)
Hope this answer helps. Thanks

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote