Can anyone tell me if it looks like I am on the right track? This is the first part of the initialization translated from assembly to pbp.

INITOLR:

O_XCS = 0 'set lata.5 to low to select the OLED
O_AO = 1 'data sheet has set high for command (latc.6)
shiftout OSPI_DAT, OSPI_CLK,MSBFIRST,[$2]
O_AO = 0 'set low for data
shiftout OSPI_DAT, OSPI_CLK,MSBFIRST,[$0]
O_XCS = 1 'set a.5 high to delect the OLED
@ NOP

.....and all the rest.