fourth lecture master
authorBernhard Urban <lewurm@gmail.com>
Fri, 4 Nov 2011 16:18:05 +0000 (17:18 +0100)
committerBernhard Urban <lewurm@gmail.com>
Fri, 4 Nov 2011 16:18:05 +0000 (17:18 +0100)
4vo.fs [new file with mode: 0644]

diff --git a/4vo.fs b/4vo.fs
new file mode 100644 (file)
index 0000000..dbde186
--- /dev/null
+++ b/4vo.fs
@@ -0,0 +1,37 @@
+\ 4. lecture
+
+: rr ( -- ) s" 4vo.fs" included ;
+: :r rr ; \ ghci style
+
+\ :noname \ ano-fkt
+
+\ oop example: mini-examp.fs ( @ /pub/anton ...) oder bernd paysan webseite
+
+\ live hax
+\ > hex
+\ > create foo
+\ > 5 ,
+\ > ' foo .
+\ > ' foo >body .
+\ > ' foo >body @ . 5 \ dazwischen steht das sogenannte `code field'
+
+\ gforth schmaes
+\ > here hex. \ (diese ausgabe)
+\ > : foo 5 + ;
+\ > here hex.
+\ > : bar foo ;
+\ > here hex.
+\ > (diese ausgabe) 80 dump
+\ > ' foo hex.
+\ > ' foo >body hex.
+\ > simple-see foo \ zwischencode \ ";s" aka "semis" aka "exit". wird fuer ';' kompiliert
+\ > simple-see bar
+\ addr von + in `simple-see foo' nehmen und
+\ > <addr> 16 dump
+\ \ und dann addressen dort nochmal dereferenzieren...
+\ > <addr> @ 80 discode
+
+\ \ besser: see-code
+
+
+\ oder: > see +