I am studying computing science at university and i am having problems with the following homework
I'm hoping someone will be able to help me out.
HOMEWORK
Develop an emmbedded intel 8086 assembler program in stages to solve the following problem
Convert a string containing an unsigned integer as a sequence of hexidecimal character digits to another string containing the corresponding decimal character digits within the assembler, without using any logical operations (AND,OR,XOR,shift), without using multiplication or division operations and without using a straight sequence of simple 4 repeated ADD operations to achieve multiplication.
The Pascal section will only input the original string and print the result.
(assume that the maximum hex. input number is 7FFF. use only 8-bit and 16-bit registers, except for the 32-bit string address register.)
You may find it helpful to use internal procedure calls in the assembler, which jump to a section of code with a label and which returns to the assembler statment after the call
CALL @POINT {call procedure POINT}
....
@POINT NOP {start of procedure}
....
RET {return from procedure}
I have 3 days left before I have to hand it in.
Cheers Steve
I'm hoping someone will be able to help me out.
HOMEWORK
Develop an emmbedded intel 8086 assembler program in stages to solve the following problem
Convert a string containing an unsigned integer as a sequence of hexidecimal character digits to another string containing the corresponding decimal character digits within the assembler, without using any logical operations (AND,OR,XOR,shift), without using multiplication or division operations and without using a straight sequence of simple 4 repeated ADD operations to achieve multiplication.
The Pascal section will only input the original string and print the result.
(assume that the maximum hex. input number is 7FFF. use only 8-bit and 16-bit registers, except for the 32-bit string address register.)
You may find it helpful to use internal procedure calls in the assembler, which jump to a section of code with a label and which returns to the assembler statment after the call
CALL @POINT {call procedure POINT}
....
@POINT NOP {start of procedure}
....
RET {return from procedure}
I have 3 days left before I have to hand it in.
Cheers Steve