Understanding P2 streamer
ti85
Posts: 42
in Propeller 2
mov x,#480 'set visible lines
line call #hsync 'do horizontal sync
xcont m_rf,#0 'visible line
djnz x,#line 'another line?
m_rf long $7F080000+640 'visible rlong 8bpp lut
Above is code from the VGA 640x480 8bpp example
I have used the P1 to do VGA in the past, however, I am having a hard time understanding the code listed above. I know the xcont instruction
uses the streamer to output @ the DACs. How does the m_rf setup the streamer and how does the program know the address for the bitmap pixels?
line call #hsync 'do horizontal sync
xcont m_rf,#0 'visible line
djnz x,#line 'another line?
m_rf long $7F080000+640 'visible rlong 8bpp lut
Above is code from the VGA 640x480 8bpp example
I have used the P1 to do VGA in the past, however, I am having a hard time understanding the code listed above. I know the xcont instruction
uses the streamer to output @ the DACs. How does the m_rf setup the streamer and how does the program know the address for the bitmap pixels?
Comments
There's a rdfast command before the xcont that tells it where to read from...
Also, SETCMOD and its associated instructions defines how the streamer data gets formatted for output.