Share with others

Mask Lower Nibble in Assembly Language Code

Write a program to mask lower 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 Masking Lower Nibble

Step I            :   Load the number in AL.
Step II           :   Mask tower  nibble i.e. AND AL, 0F0 H.
Step III          :   Display result.
Step IV          :   Stop.  

Mask Lower Nibble Algorithm Snapshot

Masking Lower Nibble Code

How to Run this Program

For Running this program you should have installed Tasm on you computer . If you have not installed Tasm  yet please install from Here .

C:\programs>tasm lownib.asm
Turbo Assembler  Version 3.0  Copyright (c) 1988,  1991 Borland International
Assembling file:   lownib.asm
Error messages:    None
Warning messages:  None
Passes:            1
Remaining memory:  438k
C:\programs>tlink lownib.obj
Turbo Link  Version 3.0 Copyright (c) 1987, 1990 Borland International
Warning: No stack

Share with others