daver2
10k Member
Your CCC-3 software is slowly giving up it's secrets!
I am working from the inner loop outwards - and it is starting to make sense...
Your "JNC OC211" should be "JNC OC221" (as my first guess)...
The bit in the carry flag indicates the state of the current bit being processed from the camera sensor within the current frame. if the bit is SET, then the 4-bit value in the current Dazzler's corresponding pixel needs to be incremented (a brighter grey-scale pixel). if the bit is CLEAR (NC) no Dazzler pixel update needs to be made.
EDIT1: Just worked out the outermost loop. What an evil program! The position of the cyclops camera buffer (at address 1000h) is significant! The upper three bits of H are used to indicate which data bit of the camera frame is being processed. This is still an assumption until I comment things in more detail - but not a bad assumption.
EDIT2: Above assumption turned out to be correct. Almost finished...
EDIT3: First pass comments attached. I will tidy them up later. It is always good to go back to comments and read them after a couple of days. If they don't make sense - they are clearly not good enough!
I think I have found another coding error. A bitmask is identified as 0E0h and I think it should be 0F0h.
Incidentally, the setting of camera port B to 0Bh = 11 (decimal) yields 12 frames as processed by the code (I think)...
Dave
I am working from the inner loop outwards - and it is starting to make sense...
Your "JNC OC211" should be "JNC OC221" (as my first guess)...
The bit in the carry flag indicates the state of the current bit being processed from the camera sensor within the current frame. if the bit is SET, then the 4-bit value in the current Dazzler's corresponding pixel needs to be incremented (a brighter grey-scale pixel). if the bit is CLEAR (NC) no Dazzler pixel update needs to be made.
EDIT1: Just worked out the outermost loop. What an evil program! The position of the cyclops camera buffer (at address 1000h) is significant! The upper three bits of H are used to indicate which data bit of the camera frame is being processed. This is still an assumption until I comment things in more detail - but not a bad assumption.
EDIT2: Above assumption turned out to be correct. Almost finished...
EDIT3: First pass comments attached. I will tidy them up later. It is always good to go back to comments and read them after a couple of days. If they don't make sense - they are clearly not good enough!
I think I have found another coding error. A bitmask is identified as 0E0h and I think it should be 0F0h.
Incidentally, the setting of camera port B to 0Bh = 11 (decimal) yields 12 frames as processed by the code (I think)...
Dave
Attachments
Last edited: