scene.org File Archive

File download

<root>­/­parties­/­2021­/­vintagecomputingchristmaschallenge21­/­challenge/patricecarr__c64_basic_vc3-2021.zip

File size:
110 264 bytes (107.68K)
File date:
2021-12-25 12:55:53
Download count:
all-time: 14

Preview

  • PatriceCarré_C64_basic_vc3-2021.prg 100B
  • PatriceCarré_C64_basic_vc3-2021.txt 522B
  • Screenshot_20211218-223808.png 50.80K
  • Screenshot_20211218-224842.png 54.19K

file_id.diz

1 for l=0 to 13:read s
2 for n=-s to s:poke 1043+n+40*l,42
3 nextn:nextl
4 data 0,1,2,3,1,3,5,7,2,5,8,11,1,1
ready.

Install vice, drag and drop the prg file into it

l is the number of the line of the christmas tree (0 is the top row)
2s+1 is the number of "*" in a line.
This program uses also the poke 1043+n+40*l,42 who puts star "*" at the line number l and at the column number n 
after the column center (on the right if n is positive and on the left if n is negative)