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