answersLogoWhite

0

  • LXI H, 4150 ; Point to data
  • LXI B, 0000 ; Initialize hundreds= 0, Tens=0
  • MOV A, M ; Get hex data to A
  • LOOP: SUI 64
  • JC LOOP 1
  • INR B ; hundreds= hundreds+1
  • JMP LOOP
  • LOOP 1: ADI 64 ; if subtracted extra, add it clear carry flag
  • LOOP 2: SUI 0A
  • JC LOOP 3
  • INR C ; Tens=tens+1
  • JMP LOOP 2
  • LOOP 3: ADI 0A ; If subtracted extra, add it again
  • INX H ; A = Units
  • MOV M, B ; store hundreds
  • MOV B, A ; Combine Tens in C &
  • MOV A, C ; Units in A to form a
  • RLC ; Single 8-bit number
  • RLC
  • RLC
  • RLC
  • ADD B
  • INX H
  • MOV M, A ; Store tens & Units
  • HLT
User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is hexadecimal ASCII?

Hexadecimal ASCII refers to the representation of ASCII (American Standard Code for Information Interchange) characters using hexadecimal (base-16) notation. Each ASCII character is assigned a unique decimal value, which can be converted into a two-digit hexadecimal equivalent. For example, the ASCII character 'A' is represented as 65 in decimal and 41 in hexadecimal. This format is often used in programming and data encoding to compactly represent text data.


What is the Hexadecimal equivalent of dot?

If you are referring to the ASCII code: The ASCII Code for a dot (.) is 46. The hexadecimal equivalent of this is 2E. You can find this, and all ASCII characters here: http://www.asciitable.com/.


How you can send a3c2 in ascii?

To send the ASCII representation of the expression "a3c2," you would convert each character into its corresponding ASCII value. The ASCII values are: 'a' (97), '3' (51), 'c' (99), and '2' (50). You can send these values as a sequence of numbers or convert them to binary or hexadecimal if needed. For example, in binary, "a3c2" would be represented as 01100001 00110011 01100011 00110010.


What is the ASCII hexadecimal code for a blank space?

0000


What is the hexadecimal equivalent for open bracket?

The hexadecimal equivalent for the open bracket character ( is 28. In ASCII, the decimal value for the open bracket is 40, which converts to hexadecimal as 28.


What is the ASCII code for letter D?

The ASCII code for the letter D is 68 in decimal, 0x44 in hexadecimal/Unicode.


Where programs can one use to convert a picture to ASCII text art?

Glass Giant is an online source which one can use to convert a picture to ASCII text art. The program is free and can be used directly on the website.


What is the ASCII code of H?

Capital H has an ASCII Code of 72 in Decimal. In Binary that is 1001000. In Hexadecimal it is 48. In Octal it is 110. For a small h it is Decimal 104, Binary 1101000, Hexadecimal 68 and Octal 150.


What is the Hexadecimal equivalent of space?

The space character in ASCII is CHR(32), so in HEX, that would be 0x20


What is ASCII value of 12?

The ASCII value of the decimal number 12 is represented by the control character known as "Form Feed" (FF). In hexadecimal, this value is 0C. ASCII values are used in computer systems to represent characters and control commands, with 12 being a non-printable character.


How does number code differ from a number system?

Number System enables enumeration & quantitation of physical objects. For e.g. Binary, Octal, Decimal & Hexadecimal Number Systems.Number Code encodesunique characters with a number ineach Number System. For e.g.In ASCII Codecapital A is represented as 41 in hexadecimal, 65 in Decimal, 101 in Octal and 01000001 in Binary number System.


Convert string have a nice day to equivalent ascii code include spaces between words in the resultant ascii?

Convert string have a nice day to equivalent ascii code include spaces between words in the resultant ascii?