Mask Upper Nibble

 

Write assembly programs to Mask Upper Nibble for that number should be loaded into the register and operation should be implemented on that loaded number .

  • Calculated result should be displayed in the output .

Algorithm for Mask Upper Nibble:

Step I : Load the number in AL.

Step II : Mask the upper nibble.

Step III : Display result.

Step IV : Stop.

Program for Mask Upper Nibble:

 

 

 

 

 

Assembly programs

C:\programs>tasm upnib.asm

Turbo Assembler  Version 3.0  Copyright (c) 1988, 1991 Borland International

Assembling file:   upnib.asm

Passes:            1

Remaining memory:  438k

C:\programs>tlink upnib

Turbo Link  Version 3.0 Copyright (c) 1987, 1990 Borland International

Warning: No stack

C:\programs>upnib