Advertisement
AndrewHaxalot

Happy Birthday BASIC

May 3rd, 2014
548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 100 PRINT CHR$(147); CHR$(154)
  2. 101 READ S : IF S = 0 GOTO 109
  3. 102 READ S$ : GOSUB 1000
  4. 103 READ X1, Y1, X2, Y2, X3, Y3
  5. 104 GOTO 101
  6. 109 RESTORE : PRINT CHR$(19); CHR$(5)
  7. 110 L1 = 54272 : L2 = 54279: L3 = 54286
  8. 120 Hl = Ll + l : H2 = L2 + l : H3 = L3 + l
  9. 130 Vl = Ll + 4 : V2 = L2 + 4 : V3 = L3 + 4
  10. 140 POKE 54296, 15
  11. 150 POKE Vl + l, 9 : POKE Vl + 2, 0
  12. 160 POKE V2 + 1, 36 : POKE V2 + 2, 36
  13. 170 POKE V3 + 1, 18 : POKE V3 + 2, 170
  14. 180 T = TI
  15. 200 POKE V1,16 : POKE V2, 32: POKE V3, 16
  16. 210 READ S : IF S = 0 GOTO 290
  17. 212 READ S$ : GOSUB 1000
  18. 220 READ X1, Y1, X2, Y2, X3, Y3
  19. 230 IF X1 THEN POKE H1, X1: POKE L1, Yl: POKE V1, 17
  20. 240 IF X2 THEN POKE H2, X2: POKE L2, Y2: POKE V2, 33
  21. 250 IF X3 THEN POKE H3, X3: POKE L3, Y3: POKE V3, 17
  22. 260 T = T + S
  23. 270 IF T > TI GOTO 270
  24. 280 GOTO 200
  25. 290 FOR J = L1 TO 54296 : POKE J, 0: NEXT J
  26. 295 PRINT CHR$(154): END
  27. 300 DATA 40, "{2 SPACES}HAP", 34, 75, 0, 0, 0, 0
  28. 310 DATA 20, " PY ", 34, 75, 0, 0, 0, 0
  29. 320 DATA 60, " BIRTH ", 38, 126, 28, 214, 5, 185
  30. 330 DATA 60, " DAY ", 34, 75, 28, 214, 0, 0
  31. 340 DATA 60, " TO ", 45, 198, 38, 126, 5, 185
  32. 350 DATA 60, " YOU ", 43, 52, 30, 141, 4, 73
  33. 360 DATA 60, " , " , 0, 0, 0, 0, 0, 0
  34. 370 DATA 40, "{2 SPACES}HAP", 34, 75, 0, 0, 0, 0
  35. 380 DATA 20, " PY ", 34, 75, 0, 0, 0, 0
  36. 390 DATA 60, " BIRTH ", 38, 126, 30, 141, 6, 108
  37. 400 DATA 60, " DAY ", 34, 75, 30, 141, 0, 0
  38. 410 DATA 60, " TO ", 51, 97, 34, 75, 4, 73
  39. 420 DATA 60, " YOU ", 45, 198, 28, 214, 5, 185
  40. 430 DATA 60, " , ", 0, 0, 0, 0, 0, 0
  41. 440 DATA 40, "{2 SPACES} HAP", 34, 75, 0, 0, 0, 0
  42. 450 DATA 20, " PY ", 34, 75, 0, 0, 0, 0
  43. 460 DATA 60, " BIRTH ", 68, 149, 22, 227, 5, 185
  44. 470 DATA 60, " DAY ", 57, 172, 25, 177, 0, 0
  45. 500 DATA 60, " AN " , 21, 154, 30, 141, 7, 163
  46. 480 DATA 60, " DEAR ", 45, 198, 28, 214, 7, 53
  47. 510 DATA 60, " DREW ", 19, 63, 30, 141, 0, 0
  48. 520 DATA 60, " , ", 0, 0, 0, 0, 0, 0
  49. 530 DATA 40, "{2 SPACES} HAP", 61, 126, 0, 0, 0, 0
  50. 540 DATA 20, " PY ", 61, 126, 0, 0, 0, 0
  51. 550 DATA 60, " BIRTH ", 57, 172, 34, 75, 8, 147
  52. 560 DATA 60, " DAY ", 45, 198, 28, 214, 0, 0
  53. 600 DATA 60, " TO ", 51, 97, 30, 141, 4, 73
  54. 610 DATA 60, " YOU. ", 45, 198, 28, 214, 2, 220
  55. 620 DATA 0
  56. 1000 PRINT S$; : IF RIGHT$(S$, 1) < " 0 " THEN PRINT
  57. 1010 RETURN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement