Tuesday, 29 May 2012

Exercise 2


Write a single assembly language program to perform the following tasks:

·         Count the number of characters in this given constant string “*my*oh*dear*”.
·         Display the number of characters in the given constant string.
·         Count the number of time(s) the hyphen ‘ * ‘  appear in the given constant string.
·         Display the number time(s) the hyphen ‘ * ‘ appear in the given constant string.

The program is to start at address $1000.  The stack is to start at address $7FFE. ASCII code for carriage return is $0D 

Exercise


Convert the decimal number –86.75 to IEEE 754 Single Precision Format.  Write your final answer as a hexadecimal string. 

(3 marks)

This Hexadecimal string $C2C50000 is representing IEEE 754 Single Precision Format . Covert this single precision format back to Decimal. 

            (3 marks)

Sunday, 27 May 2012

Power Trip Question 3

Create a Assembly language programme that :

go through each line in a loop and print :

*
**
***
****

each line is a loop of  a print "*" according to the line number ( 1,2,3,4 ).

create a subroutine for printing "*" .




Power Trip Question 2

W, X , Y , Z  is true  when ONLY  TWO of it is true  .
Create  a truth table and a boolean expression ( Sum of Product ) from that particular truth table.
Create  a logic circuit based on simplified boolean expression.

Power Trip Question 1


Convert the 7-bit ASCII message ‘POWER’ into a suitable Hamming code that will detect and correct a single-bit error, using EVEN parity, converting into a Hamming code. Combine all the characters together after conversion each of it to hamming code.
Express your answer as a hexadecimal string.



Tuesday, 22 May 2012