<commit_before>''
'' VGA scanline driver 640x480 (dual cog) - video driver and pixel generator
''
''        Author: <NAME>
'' Last modified: 2019/05/11
''       Version: 0.1
''
'' acknowledgements
'' - loader code based on work done by <NAME> (PhiPi)
''
CON
  _clkmode = XTAL1|PLL16X
  _xinfreq = 5_000_000
  
CON
  vgrp     = 2                                          ' video pin group
  vpin     = %%333_0                                    ' video pin mask
  video    = (vgrp << 9 | vpin) << 21

VAR
  long  mbox[res_m]
  long  scn0[res_x /4]
  long  scn1[res_x /4]
  
PUB selftest

  mbox{0} := @scn1{0} << 16 | @scn0{0}
  mbox[1] := video
  
  init(-1, @mbox{0})
  
OBJ
  system: "core.con.system"

PUB null
'' This is not a top level object.

PUB init(ID, mailbox) : cog

  word[mailbox][2] := 0

  cog := system.launch( ID, @driver, mailbox) & 7<commit_msg>[kuroneko] Ouch! Now working!<commit_after>''
'' VGA scanline driver 640x480 (dual cog) - video driver and pixel generator
''
''        Author: <NAME>
'' Last modified: 2019/05/11
''       Version: 0.1
''
'' acknowledgements
'' - loader code based on work done by <NAME> (PhiPi)
''
CON
  _clkmode = XTAL1|PLL16X
  _xinfreq = 5_000_000
  
CON
  vgrp     = 2                                          ' video pin group
  vpin     = %%333_3                                    ' video pin mask
  video    = (vgrp << 9 | vpin) << 21

VAR
  long  mbox[res_m]
  long  scn0[res_x /4]
  long  scn1[res_x /4]
  
PUB selftest

  mbox{0} := @scn1{0} << 16 | @scn0{0}
  mbox[1] := video
  
  init(-1, @mbox{0})
  
OBJ
  system: "core.con.system"

PUB null
'' This is not a top level object.

PUB init(ID, mailbox) : cog

  word[mailbox][2] := 0

  cog := system.launch( ID, @driver, mailbox) & 7
{'fraction_non_alphanumeric': 0.13402061855670103, 'fraction_numerical': 0.058419243986254296, 'mean_word_length': 2.0649122807017544, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4142306', 'n_tokens_mistral': 744, 'n_tokens_neox': 665, 'n_words': 188}