Program Control Instructions Last Updated : 21 Oct, 2025 Comments Improve Suggest changes 19 Likes Like Report Program Control Instructions are machine code instructions that manage the flow of execution in a microprocessor or microcontroller. They allow the processor to make decisions, repeat operations, or stop execution as needed. These instructions are commonly written in assembly language or generated from high-level languages during compilation.Direct the processor to execute specific tasks and access different program segments.Enable decision-making and looping within a program.Control how and when instructions are executed. Types of Program Control InstructionsFollowing are some control instructions with their examples:1. Compare InstructionCompare instruction is specifically provided, which is similar to a subtract instruction except the result is not stored anywhere, but flags are set according to the result. Example: CMP R1, R2 ;2. Unconditional Branch InstructionIt causes an unconditional change in the execution sequence, meaning the processor directly jumps to a new memory location and continues execution from there without checking any conditions.Example:JUMP L2Mov R3, R1 goto L23. Conditional Branch InstructionA conditional branch instruction is used to examine the values stored in the condition code register to determine whether the specific condition exists and to branch if it does. Example:Assembly Code : BE R1, R2, L1Compiler allocates R1 for x and R2 for yHigh Level Code: if (x==y) goto L1;4. SubroutinesA subroutine is a program fragment that lives in user space, performs a well-defined task. It is invoked by another user program and returns control to the calling program when finished. Example: CALL and RET 5. Halting InstructionsHalting Instructions are special instructions used to either pause or stop the execution of a program without performing any data processing operations. They help in managing processor timing, synchronization, or bringing the system to a controlled stop.NOP (No Operation): Causes no change in the processor state other than advancing the program counter. It is often used to synchronize timing.HALT: Brings the processor to an orderly halt and keeps it in an idle state until restarted by an interrupt, trace, reset, or external action.6. Interrupt InstructionsInterrupt is a mechanism by which an I/O or an instruction can suspend the normal execution of processor and get itself serviced. RESET - It reset the processor. This may include any or all setting registers to an initial value or setting program counter to standard starting location.TRAP - It is non-maskable edge and level triggered interrupt. TRAP has the highest priority and vectored interrupt.INTR - It is level triggered and maskable interrupt. It has the lowest priority. It can be disabled by resetting the processor. Comment P pp_pankaj Follow 19 Improve P pp_pankaj Follow 19 Improve Article Tags : Computer Organization & Architecture microprocessor Explore Basic Computer InstructionsWhat is a Computer? 6 min read Issues in Computer Design 1 min read Difference between assembly language and high level language 2 min read Addressing Modes in 8086 7 min read Difference between Memory based and Register based Addressing Modes 4 min read Von Neumann Architecture 5 min read Harvard Architecture 3 min read Interaction of a Program with Hardware 3 min read Simplified Instructional Computer (SIC) 4 min read Instruction Set used in simplified instructional Computer (SIC) 1 min read Instruction Set used in SIC/XE 2 min read RISC vs CISC 4 min read Vector processor classification 5 min read Essential Registers for Instruction Execution 3 min read Single Accumulator Based CPU Organization 3 min read Stack based CPU Organization 3 min read Machine Control Instructions in Microprocessor 4 min read Very Long Instruction Word (VLIW) Architecture 3 min read Input and Output SystemsComputer Organization | Different Instruction Cycles 11 min read Machine Instructions 5 min read Instruction Formats 6 min read Difference between 2-address instruction and 1-address instructions 4 min read Difference between 3-address instruction and 0-address instruction 4 min read Register content and Flag status after Instructions 3 min read Debugging a machine level program 3 min read Vector Instruction Format in Vector Processors 7 min read Vector Instruction Types 4 min read Instruction Design and FormatALU Functions and Bus Organization 5 min read Computer Arithmetic | Set - 1 5 min read Computer Arithmetic | Set - 2 4 min read 1's Complement Representation vs 2's Complement Representation 4 min read Restoring Division Algorithm For Unsigned Integer 4 min read Non-Restoring Division For Unsigned Integer 3 min read Booth's Algorithm 4 min read How the Negative Numbers are Stored in Memory? 2 min read Microprogrammed ControlMicro-Operation 3 min read Instruction Set Architecture and Microarchitecture 3 min read Types of Program Control Instructions 6 min read Difference between CALL and JUMP instructions 5 min read Hardwired and Micro-programmed Control Unit 3 min read Implementation of Micro Instructions Sequencer 4 min read Performance of Computer in Computer Organization 5 min read Introduction to Control Unit and its Design 5 min read Computer Organization | Amdahl's law and its proof 2 min read Subroutine, Subroutine nesting and Stack memory 5 min read Different Types of RAM (Random Access Memory ) 8 min read Random Access Memory (RAM) and Read Only Memory (ROM) 8 min read 2D and 2.5D Memory organization 4 min read Input and Output OrganizationPriority Interrupts | (S/W Polling and Daisy Chaining) 5 min read I/O Interface (Interrupt and DMA Mode) 4 min read Direct memory access with DMA controller 8257/8237 3 min read Computer Organization | Asynchronous input output synchronization 7 min read Programmable peripheral interface 8255 4 min read Synchronous Data Transfer in Computer Organization 4 min read Introduction of Input-Output Processor 5 min read MPU Communication in Computer Organization 4 min read Memory Mapped I/O and Isolated I/O 5 min read Memory OrganizationIntroduction to memory and memory units 4 min read Memory Hierarchy Design and its Characteristics 6 min read Register Allocations in Code Generation 6 min read Cache Memory 5 min read Cache Organization | Set 1 (Introduction) 3 min read Multilevel Cache Organisation 6 min read Difference between RAM and ROM 7 min read Difference Between CPU Cache and TLB 4 min read Introduction to Solid-State Drive (SSD) 4 min read Read and Write operations in Memory 3 min read PipeliningInstruction Level Parallelism 5 min read Pipelining | Set 1 (Execution, Stages and Throughput) 6 min read Computer Organization and Architecture | Pipelining | Set 3 (Types and Stalling) 3 min read Computer Organization and Architecture | Pipelining | Set 2 (Dependencies and Data Hazard) 6 min read Last Minute Notes Computer Organization 15+ min read Like