11-Programming 8051 Using Assembly-22!01!2025
11-Programming 8051 Using Assembly-22!01!2025
Write an assembly language program to find the given number is positive or negative
Steps Involved: Analyze the logic, Identify the suitable instructions and Formulate the algorithm
Example
Given number: A = 84 H; C = 0
C - bit A Register
0 1 0 0 0 0 1 0 0
D7 D6 D5 D4 D3 D2 D1 D0
C - bit A Register
RLC A 0 1 0 0 0 0 1 0 0