×

Embedded Systems Tutorial

AVR Microcontroller

8051 Microcontroller

8085 Microprocessor

8086 Microprocessor

8255 Microprocessor

Embedded Systems Practice

Show masking of lower and higher nibbles of 16-bit number | 8086 Microprocessor

In this tutorial, we will learn how to show masking of lower and higher nibbles of 16-bit number using 8086 Microprocessor? By Akash Kumar Last updated : May 22, 2023

Problem Statement

To show masking of lower and higher nibbles of 16bit number using 8086 Microprocessor.

Assumption

  • Number is stored at memory location 0600.
  • Result will be stored at memory location 0602 and 0603.

Algorithm

  1. Load first number to the register AX.
  2. Now move the content of register AL to memory location [0602].
  3. Now move the content of register AH to memory location [0603].
  4. Terminate the program.

Program

MOV     AX, [0600]
MOV     [0601], AL
MOV     [0602], AH
HLT

Observation

INPUT:
0600: 1112

OUTPUT:
0602:0012
0603:0011

Hence, we successfully masked the higher and lower nibble of a 16 bit number using 8086 Microprocessor.




Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.