answersLogoWhite

0

Sample problem 1:

(2200H) = 67H

(2300H) = 6 x OAH + 7 = 3CH + 7 = 43H

Source program :

  • LDA 2200H : Get the BCD number
  • MOV B, A : Save it
  • ANI OFH : Mask most significant four bits
  • MOV C, A : Save unpacked BCDI in C register
  • MOV A, B : Get BCD again
  • ANI FOH : Mask least significant four bits
  • RRC : Convert most significant four bits into unpacked BCD2
  • RRC
  • RRC
  • RRC
  • MOV B, A : Save unpacked BCD2 in B register
  • XRA A : Clear accumulator (sum = 0)
  • MVI D, 0AH : Set D as a multiplier of 10
  • Sum: ADD D : Add 10 until (B) = 0
  • DCR B : Decrement BCD2 by one
  • JNZ SUM : Is multiplication complete? i if not, go back and add again
  • ADD C : Add BCD1
  • STA 2300H : Store the result
  • HLT : Terminate program execution

Flowchart for program

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is the octal of hex 54?

Octal 124


What is the octal representation of 254?

Hex 254 = 1124 octal


What is octal to hex?

calc.exe


What is the octal equivalent hex 9C?

234


Could u please Convert octal no 1247 to hexadecimal?

Octal 1247 = Hex 2A7


The Hex number FF may be represented by?

FF in Hex is the same as 255 in Decimal, 377 in Octal and 11111111 in Binary FF in Hex is the same as 255 in Decimal, 377 in Octal and 11111111 in Binary


What are the lowest address in the 8086?

The addresses for the 8086 range from 00000 hex to FFFFF hex, but they are accessed as offsets within overlapping 64-kB blocks.


What is the value for hex value 20?

20 hex = 32 decimal or 100000 binary or 40 octal.


How do you write a Java program to convert a decimal number to an octal number?

public class Dataconversion { public static void main(String[] args) { System.out.println("Data types conversion example!"); int in = 44; System.out.println("Integer: " + in); //integer to binary String by = Integer.toBinaryString(in); System.out.println("Byte: " + by); //integer to hexadecimal String hex = Integer.toHexString(in); System.out.println("Hexa decimal: " + hex); //integer to octal String oct = Integer.toOctalString(in); System.out.println("Octal: " + oct); } }


Is 75 an octal number?

Yes. The hex equivalent is 3D and the binary is 111101. The decimal is 61.


Represent the following hexadecimal number into octol 8AC8A516?

Hex 8AC8A516 = octal 2126212426 - decimal 2328405270.


Convert the hexadecimal number ABCDEF into binary and octal?

Start > All Programs > Accessories > Calculator In Calculator, View > Programmer. Select Hex. Type ABCDEF and then select binary. This gives this : 101010111100110111101111