Binary Search in C using Recursion
#include<stdio.h> void bins ( int lb , int ub , int item , int a []); void main () { int i , n , item , a [ 20 ]; printf ( &quo…
#include<stdio.h> void bins ( int lb , int ub , int item , int a []); void main () { int i , n , item , a [ 20 ]; printf ( &quo…
/* C++ Program to calculate the area and perimeter of rectangles using concept of inheritance. */ #include using namespace std; class Rectangle { …
class A extends Thread { public void run( ) …
MVI C, 0AH ; Initialize counter LXI H, 2200H ; Initialize source memory pointer LXI D, 2309H ; …
LDA 2200H MOV C, A ; Initialize counter LXI H, 2201H ; Initialize pointer MVI E, 00 ; S…
LDA 2200H MOV C, A ; Initialize counter MVI B, 00H ; sum = 0 LXI H, 2201H ; Initialize pointer BACK…
MVI B,00H MVI C,08H MOV A,D BACK: RAR JNC SKIP INR B SKIP: DCR C …
MVI C, 0AH ; Initialize counter LXI H, 2200H ; Initialize source memory pointer LXI D, 2300H ; Ini…
LDA 2200H MOV C,A ; Initialize counter LXI H, 2201H ; Initialize pointer SUB A ; Sum lo…
LDA 2200 MOV C, A ; Initialize counter SUB A ; sum = 0 LXI H, 2201H ; Initialize pointer BACK: ADD M …
MOV A, L ; Get lower 2 digits of no. 1 ADD E ; Add two lower digits DAA ; Adjust result to valid BCD STA 2300H ; Store partial result MO…
ADDITION OF TWO 16BIT NUMBERS SUM 16 BITS OR MORE Manually strore 1st 16 bit no in the memory location C050 & C051 in reverse order Manually stor…
If 2nd no is greater than 1st no then the answer will in 2's complement Manually strore 1st 8 bit no in the memory location C050 Manually store…
Exchange the contents of memory locations 2000H and 4000H. Program 1: LDA 2000H : Get the contents of memory location 2000H into accumulator MOV B, A…
Program 1: MVI A, 52H : Store 32H in the accumulator STA 4000H : Copy accumulator contents at address 4000H HLT : Terminate program execution Program…
LHLD 2501 XCHG LDA 2503 LXI H,0000 MVI C,08 LOOP: DAD H RAL JNC AHEAD DAD D AHEAD…
LHLD 2501 LDA 2503 MOV B,A MVI C,08 LOOP: DAD H MOV A,H SUB B JC AHEAD MOV H,A INR L AHEA…
The number to be complemented is stored in C050. Answer is stored in C051 LDA C050 CMA INR A STA C051 HLT EXAMPLE-> C050=96 An…
The 16bit number is stored in C050,C051. The answer is stored in C052,C053 LXI H,C050 MVI B,00 MOV A,M CMA ADI 01 STA C052 …
The number to be complemented is stored in C050. Answer is stored in C051 LDA C050 CMA STA C051 HLT EXAMPLE-> C050=96 Answer-> …
The 16bit number is stored in C050,C051 The answer is stored in C052,C053 LXI H,C050 MOV A,M CMA STA C052 INX H MOV A,M C…
Nokia isn't exactly known for its tablets, but having sold its phone-making division to Microsoft it's hoping to catch your eye with its late…
The new Group Chat feature in WhatsApp lets you chat with up to 100 people at once. Previously it was only 50. It is a great way stay in touch with y…