Quick links
Latest articles
Internship
Members
New...
Algorithms
Discrete Mathematics
Big data
Languages
C
C++
C++ STL
Java
Data Structure
C#.Net
Android
Kotlin
SQL
Web
PHP
Python
JavaScript
CSS
Ajax
Node.js
Web prog.
Programs
C
C++
DS
Java
C#
Python
Aptitude
C
C++
Java
DBMS
Interview
C
Embedded C
Java
SEO
HR
CS Subjects
CS Basics
O.S.
Networks
DBMS
Embedded Systems
Cloud Computing
Machine learning
CS Organizations
Linux
DOS
More...
Articles
Puzzles
News/Updates

Home » Embedded Systems

Masking of lower and higher nibble of 8-bit number | 8085 Microprocessor



Here, we are going to learn how to mask of lower and higher nibble of 8-bit number using 8085 Microprocessor?
Submitted by Diksha Tewari, on November 08, 2018

Problem statement:

To mask lower and higher nibble of 8-bit number using 8085 Microprocessor.

Algorithm:

  1. Load the content of accumulator A with an 8bit number.
  2. Copy the content of accumulator to the register B.
  3. Perform AND operation on the content of accumulator with 0F.
  4. Store the result in a memory location.
  5. Copy the content of register B to the register accumulator.
  6. Perform AND operation on the content of accumulator with F0.
  7. Perform RLC operation 4 times.
  8. Terminate the program.

Program:

	LDA     2051
	MOV     B, A
	ANI     0F
	STA     2052
	MOV     A, B
	ANI     F0
	RLC
	RLC
	RLC
	RLC
	STA     2053
	HLT

Observation:

    INPUT: 
    2051:16

    OUTPUT: 
    2052:06
    2053:01

Hence, we successfully masked the lower and higher nibble of 8-bit number.






Quick links:
C FAQ(s) C Advance programs C/C++ Tips & Tricks Puzzles JavaScript CSS Python Linux Commands PHP Android Articles More...

Featured post:
Introduction to Linux (Its modes, Safety, Most popular Applications)
Linux Best Distribution Software (Distros) of 2018

Was this page helpful? Please share with your friends...

Are you a blogger? Join our Blogging forum.

Comments and Discussions



Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing » Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates



© https://www.includehelp.com (2015-2018), Some rights reserved.