home *** CD-ROM | disk | FTP | other *** search
/ 64'er 1987 November / 64er_Magazin_87-11_1987_Markt__Technik_de.d64 / hertz (.txt) < prev    next >
Commodore BASIC  |  2022-10-26  |  161b  |  7 lines

  1. 1 sys49152
  2. 2 input"hertz";he
  3. 3 h=985248.4/(2*he):hi=int(h/256):lo=h-hi*256
  4. 4 print"lo :";int(lo);"    hi :";hi
  5. 5 poke56580,lo:poke56581,hi:poke2,1:fora=0to300:next:poke2,0
  6. 6 goto2
  7.