home *** CD-ROM | disk | FTP | other *** search
/ 64'er 1996 February / 64er_Magazin_96-02_1996_Markt__Technik_de_Side_A.d64 / loader (.txt) < prev    next >
Commodore BASIC  |  2022-10-26  |  3KB  |  83 lines

  1. 10 rem lunix - loader v0.1 (5.12.1994)
  2. 20 rem written by poldi
  3. 30 rem       = (in rl.) daniel dallmann
  4. 40 rem
  5. 50 poke56,140:poke808,252
  6. 60 e=e+1:ife=1thenprint"[204]oading [204][213]nix-[203]ernel":load"lunix.sys",8,1
  7. 70 print"[196]o you want some comments ? (y/n) ";
  8. 80 poke204,0:poke198,0:wait198,1:getc$
  9. 85 printc$:poke204,1:fort=1to500:next:print" "
  10. 90 ifc$<>"y"goto1000
  11. 95 :
  12. 100 print"[204][213]nix [214]ersion 0.1p2 / 5.12.1994"
  13. 110 print"  written by [196]aniel [196]allmann
  14. 120 [153]"  your comments to ...
  15. 130 print"   zcmm1121@rpool1.rus.uni-stuttgart.de
  16. 140 [153]"(NULL)ittle (NULL)nix,well better very little :)"
  17. 150 [153]"right$'ll just explain the available commandson this version ...
  18. 160 print"there are several groups :
  19. 170 [153]" 1) commands using stdin (standart
  20. 180 print"    input) and stdout (..output)
  21. 190 [153]"     - sh0.exe (a subshell)
  22. 200 print"     - mirror  (turns lines aroud eg.
  23. 210 [153]"     -   hello will mirrored to olleh
  24. 220 print"     - wc      (counts chars/words/line"
  25. 230 print"         till there is a [197][207][212] (<[195][212][210][204]>+d)
  26. 240 [153]"     - hexconv (converts decimal values
  27. 250 print"         in a ascii-stream into hex)
  28. 260 [153]:[141]2000
  29. 270 [153]" 2) commands using either only stdin        or stdout"
  30. 280 [153]"     - ps [-[l][a]]
  31. 290 print"         prints a list of the processes          in the system"
  32. 300 print"     - mem
  33. 310 [153]"         shows the status of memory and          system"
  34. 320 [153]"     - man     (prints this text in a            short form)
  35. 330 print"     - count   (count up to 255)
  36. 340 [153]"     - prim x,y
  37. 350 print"         (calculates y prime numbers >x
  38. 360 [153]"         0 <= y < 65536
  39. 370 print"         4 <  x < 4294967296 )
  40. 380 [153]"     - write x
  41. 390 print"         (writes a message
  42. 400 [153]"         x must be the pid
  43. 410 print"         =process identification
  44. 420 [153]"         you can get the pid with ps -a
  45. 430 print"         the receiver should be a shell)
  46. 440 [141]2000
  47. 500 [153]" 3) commands without i/o"
  48. 510 [153]"     - kill x
  49. 520 print"         kills a process x=pid
  50. 530 [153]"     - exit
  51. 540 print"         exits a shell you can also use
  52. 550 [153]"         <len(NULL)(NULL)(NULL)>+d !
  53. 560 print"     - memfree
  54. 570 [153]"         shows the actual amount of free
  55. 580 print"         memory pages (= 256 bytes)
  56. 590 [153]"         you should start it as a
  57. 595 print"         background process
  58. 596 [153]"         type : memfree &
  59. 600 gosub2000
  60. 610 print" [200]ow to combine commands ?
  61. 620 [153]"   -eg.  prim 100,10 ! hexconv
  62. 630 print"    will print 10 prime number as hex.
  63. 640 [153]"   -     ps ! write x
  64. 650 print"   -     man ! mirror
  65. 660 [153]"    will print a mirrored mannual
  66. 670 print"    (parhaps u can read it using a           real mirror :)
  67. 680 [153]"   -     count ! mirror ! mirror ! wc &
  68. 690 print"    count up to 255 -> 2*mirror ->          count the lines
  69. 700 [153]"    all that in the background  :-)
  70. 710 print" just be creativ and have fun with it..
  71. 720 [141]2000:[137]1000
  72. 1000 [143] start lunix
  73. 1005 [153]" (NULL)ress <asc3> (add a session) to load a    shell then press <asc1>....
  74. 1007 fort=1to1000:next
  75. 1010 print" [211]tarting [204][213]nix ...":sys36241
  76. 2000 print" <[211][208][193][195][197]> for more <[210][213][206]/[211][212][207][208]> for lunix ";
  77. 2010 poke198,0:wait198,1
  78. 2020 getq$
  79. 2021 print"[145]"chr$(13)"                                       [145]"
  80. 2025 ifq$=" "thenreturn
  81. 2030 ifq$<>chr$(3)goto2000
  82. 2040 goto1000
  83.