This is an assignment, I don't know where to start.
Assignment:
A byte can be represented using three octal digits. Bits 7 and 6 determines the left octal digit (which is never higher than 3); bits 5, 4 and 3 are the middle digit; and bits 2, 1 and 0 are the right digit.
For instance, 11010110 b is 11 010 110 b OR 326 oct. The value of a word is represented in split octal by applying the 2-3-3 system to the high-order and low-order bytes separately.
Write a procesure splitOctal that converts a word to a stringof exactly 7 characters representing the value of the number in split octal; two groups of three separated by a space.
Follow cdecl protocols. The procedure will have two parameters: 1) The word value (passed as the low order word of a doublewowd) 2) the address of the 7-byte-long destination string.
MODIFICATIONS: Instead of pushing the value convert as a word onto the stack, only use doublewords on the stack. So push the value to convert as a DOUBLEword onto the stack
I don't know where to start to accomplish this by shifting bits and rotating bits. Maybe give me some material to read, or a little kickstart?