In the following questions, please use any user memory address you wish, providing it is within actual real memory and does not affect any special function registers, unless otherwise specified. Initialise all files/registers as necessary.
Q1) Write a program which takes data in from portB (06h), only when bit 0 on portA (05h,0) is high and store the data in some address. The program should indicate, by making output portA,1 high, that the data has been received and not take any new data in from portB until a low (logic 0) has been detected on portA,0. the program should be capable of taking 10 bytes of data in and store this data at sequential addresses.
Q2) write a program to manually complete a 2s complement subtraction, testing for negative numbers and place the result
Can you provide what each piece of code is doing.
Optional Information:
OS: Windows Me; Browser: Other
Already Tried:
VARIOUS BOOKS!!!