
Enable Chip, Write to port &H7
call writeByte(HighByte)
call writeByte(LowByte)
Latch, Write to port &H3  
disable Chip, Write to port &HF

sub writeByte(Byte)
   For X = 0 to 7
      if Byte and &H80 Temp = &H2  'send a 1
      else             Temp = &H0  'send a 0
      Write to port Temp AND &H5   'send bit to port, clk and latch high 
      Byte = Byte * 8              'Shift Byte Left

      Write to port Temp AND &H4   'Clock Low
      'May need a delay here
      Write to port Temp AND &H5   'Clock High (and Data transfers)

   Next X
end sub


