Data Transfer and Instruction Set
Load register with dataarrow-up-right
Load register with data and copy content of this memory location to register Carrow-up-right
Load content of memory location to registerarrow-up-right
Store content of register to memory locationarrow-up-right
Input data from port address and out through port addressarrow-up-right
Display content of memory location into port addressarrow-up-right
Swap contents of register B and Carrow-up-right
Swap contents of memory locationarrow-up-right
Arithmetic and Logical Instruction Set
Add content of one register and another register and store the result in next registerarrow-up-right
Subtract content of memory location 5000H from 5001H and store result in 5002Harrow-up-right
Add 16-bit data from register pair B and D and store result at HL pairarrow-up-right
Load 00H into register B and 10H into register C. Increment content of register B and Decrement content of register C. Store result at memory locations 4000H and 4001Harrow-up-right
Load 16-bit data of register pair from another register pair and store resultarrow-up-right
Branching Instruction Set
WAP to add the content of 4004H and 4005H and store the result and carry in successive memory locationarrow-up-right
WAP for addition of two 16 bit numbers with carryarrow-up-right
WAP to subtract the content of register C from register B and store the difference at register L and borrow at register Harrow-up-right
Subtract with borrowarrow-up-right
WAP to create a continous loop using unconditional jump instructionarrow-up-right
WAP to test the Jump on Zero (JZ=1) condition on arithmetic operationarrow-up-right
WAP to test the Jump on Zero (JPE=1) condition on logical operationarrow-up-right
WAP to test the jump on negative (S=1) condition on arithmetic operationarrow-up-right
Rotate Instruction Set
WAP to rotate left the data byte A1H two timesarrow-up-right
WAP to rotate right the data byte F1H three timesarrow-up-right
Rotate left with carry the result of addition (AAH+EEH) three timesarrow-up-right
Rotate right with carry the result of subtraction (DEH-FAH) two timesarrow-up-right
WAP to load two data stored in memory location 8000 and 8001 directly to HL register. Add them. If carry exists, rotate right with carry the accumulator result three times, otherwise terminatearrow-up-right
WAP to convert the total number of 1 in given bit numberarrow-up-right
Multiply, Divide and Memory Block Operations
Multiplyarrow-up-right
Dividearrow-up-right
Copy block of memory to another memory locationarrow-up-right
Swap memory blocksarrow-up-right
Sort memory block in ascending orderarrow-up-right
Sort memory block in descending orderarrow-up-right
Subroutine, Stack and BCD Conversion
Factorial of a number using subroutinearrow-up-right
Sum of squares of the first n numbersarrow-up-right
Convert binary to BCDarrow-up-right
Convert BCD to binaryarrow-up-right
Stack implementation and add data directlyarrow-up-right
Stack implementation and add data indirectlyarrow-up-right
Use of stack to reverse the number stored in a memory stack and store in the same memory blockarrow-up-right
Last updated 1 year ago