00:00:00 --- log: started forth/09.08.19 00:04:54 --- join: w7tek_ (n=w7tek@knowlton.dsl.xmission.com) joined #forth 00:05:31 --- quit: w7tek (Connection reset by peer) 00:05:32 --- nick: w7tek_ -> w7tek 00:20:12 --- join: w7tek_ (n=w7tek@knowlton.dsl.xmission.com) joined #forth 00:21:23 --- quit: w7tek (Read error: 104 (Connection reset by peer)) 00:21:23 --- nick: w7tek_ -> w7tek 00:35:23 --- join: w7tek_ (n=w7tek@knowlton.dsl.xmission.com) joined #forth 00:41:49 --- quit: w7tek (Read error: 110 (Connection timed out)) 00:49:16 --- quit: nighty__ (Remote closed the connection) 00:50:37 --- join: w7tek (n=w7tek@knowlton.dsl.xmission.com) joined #forth 00:54:27 --- quit: w7tek_ (Read error: 110 (Connection timed out)) 01:02:12 --- join: gogonkt_ (n=info@59.38.200.88) joined #forth 01:02:48 --- quit: xjrn (Read error: 60 (Operation timed out)) 01:05:54 --- join: w7tek_ (n=w7tek@knowlton.dsl.xmission.com) joined #forth 01:09:17 --- quit: w7tek (Read error: 110 (Connection timed out)) 01:14:29 --- quit: gogonkt (Read error: 110 (Connection timed out)) 01:20:42 --- join: w7tek (n=w7tek@knowlton.dsl.xmission.com) joined #forth 01:20:50 --- quit: w7tek_ (Read error: 104 (Connection reset by peer)) 01:21:52 --- nick: gogonkt_ -> gogonkt 01:35:54 --- join: w7tek_ (n=w7tek@knowlton.dsl.xmission.com) joined #forth 01:42:22 --- quit: w7tek (Read error: 110 (Connection timed out)) 01:42:40 --- quit: gogonkt (Read error: 110 (Connection timed out)) 01:45:37 --- join: gogonkt (n=info@59.38.200.88) joined #forth 01:51:07 --- join: w7tek (n=w7tek@knowlton.dsl.xmission.com) joined #forth 01:51:32 --- join: gogonkt_ (n=info@59.38.200.88) joined #forth 01:52:58 --- quit: gogonkt (Read error: 60 (Operation timed out)) 01:54:31 --- quit: w7tek_ (Connection timed out) 02:00:21 --- join: xjrn (n=jim@astound-69-42-10-25.ca.astound.net) joined #forth 02:03:37 --- join: gogonkt (n=info@59.39.13.94) joined #forth 02:06:23 --- join: w7tek_ (n=w7tek@knowlton.dsl.xmission.com) joined #forth 02:09:42 --- quit: w7tek (Read error: 110 (Connection timed out)) 02:11:27 --- quit: gogonkt_ (Read error: 110 (Connection timed out)) 02:21:07 --- join: w7tek (n=w7tek@knowlton.dsl.xmission.com) joined #forth 02:24:57 --- quit: w7tek_ (Read error: 110 (Connection timed out)) 02:34:53 --- quit: mathrick (Read error: 60 (Operation timed out)) 02:36:24 --- join: w7tek_ (n=w7tek@knowlton.dsl.xmission.com) joined #forth 02:39:51 --- quit: w7tek (Connection timed out) 02:51:07 --- join: w7tek (n=w7tek@knowlton.dsl.xmission.com) joined #forth 02:51:30 --- quit: maht_ (Remote closed the connection) 02:52:31 --- join: maht (n=maht__@85.189.31.174.proweb.managedbroadband.co.uk) joined #forth 02:55:21 --- quit: w7tek_ (Read error: 110 (Connection timed out)) 03:01:36 --- join: mathrick (n=mathrick@wireless.its.sdu.dk) joined #forth 03:04:14 --- join: w7tek_ (n=w7tek@knowlton.dsl.xmission.com) joined #forth 03:09:55 --- quit: w7tek (Read error: 110 (Connection timed out)) 03:12:29 --- quit: aguaithefreak (Read error: 54 (Connection reset by peer)) 03:19:28 --- join: w7tek (n=w7tek@knowlton.dsl.xmission.com) joined #forth 03:21:17 --- join: w7tek__ (n=w7tek@knowlton.dsl.xmission.com) joined #forth 03:23:22 --- quit: w7tek_ (Read error: 110 (Connection timed out)) 03:34:13 --- join: w7tek_ (n=w7tek@knowlton.dsl.xmission.com) joined #forth 03:34:14 --- quit: w7tek (Read error: 104 (Connection reset by peer)) 03:34:31 --- nick: w7tek_ -> w7tek 03:39:47 --- quit: w7tek__ (Connection timed out) 03:49:28 --- join: w7tek_ (n=w7tek@knowlton.dsl.xmission.com) joined #forth 03:53:01 --- quit: w7tek (Connection timed out) 04:02:33 --- join: pancake (n=pancake@o.bcn.fluendo.net) joined #forth 04:04:12 --- quit: w7tek_ (Read error: 104 (Connection reset by peer)) 04:04:13 --- join: w7tek (n=w7tek@knowlton.dsl.xmission.com) joined #forth 04:04:26 what do the '@' keyword does? 04:05:51 Read memory. 04:06:04 and ! ? 04:06:21 1234 @ will remove 1234 form the stack and replace with whatever is stored there 04:06:35 ! stores a word in memory. 04:06:43 ok :) 04:06:57 1234 5678 ! will remove both from the stack and store 1234 at 5678 04:07:21 Both can be used with variables, e.g. BASE 04:07:30 BASE @ . will find out the value of base and print it 04:07:53 16 BASE ! will change the value of base to 16 04:08:48 every keyword points to an address in memory? 04:12:06 --- quit: gogonkt (Read error: 145 (Connection timed out)) 04:12:10 this can be probably implementation-specific 04:15:03 variable words return a pointer into memory. Constants return a value. 04:15:18 and keywords? 04:15:42 Like SWAP ? 04:15:48 oh sry, keywords return the result 04:16:02 i see 04:16:08 Yes, unless you use ' SWAP 04:16:17 whats ' for? 04:16:23 The tick returns the address of the code to execute on the stack. 04:17:31 and how can you jump to execute code at this address? 04:17:41 EXECUTE 04:18:14 so ' SWAP EXECUTE is equivalent to just running SWAP 04:18:24 cool 04:19:28 --- join: w7tek_ (n=w7tek@knowlton.dsl.xmission.com) joined #forth 04:22:59 --- quit: w7tek (Connection timed out) 04:29:53 --- join: gogonkt (n=info@59.39.13.94) joined #forth 04:34:43 --- join: w7tek (n=w7tek@knowlton.dsl.xmission.com) joined #forth 04:37:16 and ',' ? 04:39:13 --- quit: mathrick ("HULK ANGRY! HULK DISCONNECT!") 04:39:54 --- quit: w7tek_ (Read error: 110 (Connection timed out)) 04:43:54 , places a value in data space 04:44:07 CREATE some-table 1 , 2 , 3 , 4 , 04:44:57 that would be similar to C code int some_table[] = { 1, 2, 3, 4 }; 04:49:04 ok 04:49:59 --- join: w7tek_ (n=w7tek@knowlton.dsl.xmission.com) joined #forth 04:53:00 --- quit: w7tek (Read error: 110 (Connection timed out)) 05:05:13 --- join: w7tek (n=w7tek@knowlton.dsl.xmission.com) joined #forth 05:05:16 --- quit: w7tek_ (Read error: 104 (Connection reset by peer)) 05:13:12 how can i check if the stack is empty in forth? 05:15:30 depth . 05:15:41 but you usually shouldn't 05:17:09 just for curiosity 05:17:24 yeah, it's fine for that 05:17:33 and the address stack? 05:19:58 --- join: w7tek_ (n=w7tek@knowlton.dsl.xmission.com) joined #forth 05:21:05 you mean, the return stack? 05:21:15 sometimes rdepth works 05:21:19 it's not standardised 05:21:20 ok 05:23:50 --- quit: w7tek (Connection timed out) 05:35:12 --- join: w7tek (n=w7tek@knowlton.dsl.xmission.com) joined #forth 05:38:32 --- quit: w7tek_ (Read error: 110 (Connection timed out)) 05:49:59 --- join: w7tek_ (n=w7tek@knowlton.dsl.xmission.com) joined #forth 05:53:41 --- quit: w7tek (Connection timed out) 06:04:06 --- join: tormoz (n=tormoz__@91.149.158.53) joined #forth 06:05:20 --- join: w7tek (n=w7tek@166.70.26.201) joined #forth 06:06:09 --- quit: impomatic (Read error: 110 (Connection timed out)) 06:08:56 --- quit: w7tek_ (Read error: 110 (Connection timed out)) 06:13:40 --- quit: w7tek (Read error: 145 (Connection timed out)) 07:03:20 --- quit: xjrn (Read error: 60 (Operation timed out)) 07:13:01 --- quit: pancake ("Lost terminal") 07:20:14 --- quit: tormoz (Remote closed the connection) 07:55:07 --- join: mathrick (n=mathrick@130.226.70.177) joined #forth 08:25:58 --- join: DrunkTomato (n=DEDULO@ext-gw.wellcom.tomsk.ru) joined #forth 08:26:09 --- quit: segher (Read error: 60 (Operation timed out)) 09:10:15 --- join: X-Scale (i=email@89.180.181.34) joined #forth 09:38:46 --- join: xjrn (n=jim@astound-69-42-10-25.ca.astound.net) joined #forth 09:42:44 --- quit: theatrustop (Read error: 113 (No route to host)) 09:44:26 --- quit: gogonkt ("leaving") 09:50:54 --- join: gogonkt (n=info@59.39.13.94) joined #forth 09:59:33 --- join: theatrustop (n=yann@208.176.190.222) joined #forth 10:18:14 --- join: kar8nga (n=kar8nga@a-22.vc-graz.ac.at) joined #forth 11:24:20 --- quit: kar8nga (Connection timed out) 12:31:31 --- part: X-Scale left #forth 12:39:33 --- join: rehges (n=rehges@84-105-60-153.cable.quicknet.nl) joined #forth 12:56:25 --- join: Maki (n=Maki@dynamic-78-30-139-176.adsl.eunet.rs) joined #forth 13:10:12 --- quit: rehges (Read error: 60 (Operation timed out)) 13:22:15 --- quit: Quartus` (Read error: 110 (Connection timed out)) 13:24:38 --- quit: Maki ("Leaving") 13:37:47 --- join: rehges (n=rehges@84-105-60-153.cable.quicknet.nl) joined #forth 13:44:24 --- quit: rehges (Read error: 60 (Operation timed out)) 13:44:50 --- join: rehges (n=rehges@84-105-60-153.cable.quicknet.nl) joined #forth 14:10:29 --- quit: aguai (Remote closed the connection) 14:15:28 --- nick: rehges -> segher 14:51:55 --- quit: DrunkTomato () 14:57:48 --- join: tgunr (n=tgunr@polymicro.net) joined #forth 15:45:27 --- quit: tgunr (Read error: 104 (Connection reset by peer)) 15:53:57 --- join: crc (n=charlesc@c-68-80-139-0.hsd1.pa.comcast.net) joined #forth 16:07:35 --- quit: xjrn (Nick collision from services.) 16:08:01 --- join: xjrn (n=jim@astound-69-42-10-25.ca.astound.net) joined #forth 17:31:03 --- join: nighty__ (n=nighty@210.188.173.245) joined #forth 18:25:53 --- join: tgunr (n=tgunr@polymicro.net) joined #forth 18:51:31 --- quit: nighty__ (Read error: 104 (Connection reset by peer)) 18:52:35 --- nick: tgunr -> tgunr_away 18:52:51 --- join: nighty__ (n=nighty@210.188.173.245) joined #forth 19:14:10 --- nick: tgunr_away -> tgunr 19:24:11 --- quit: theatrustop (Read error: 110 (Connection timed out)) 20:11:10 --- nick: tgunr -> tgunr_away 20:11:11 --- nick: tgunr_away -> tgunr 20:26:11 --- nick: tgunr -> tgunr_away 21:27:34 --- join: jauaor (n=araujo@gentoo/developer/araujo) joined #forth 21:28:10 * jauaor greets around 21:56:11 :) 22:20:13 --- quit: segher (Read error: 110 (Connection timed out)) 22:27:18 --- quit: crc (Read error: 110 (Connection timed out)) 22:28:52 --- quit: jauaor () 22:47:25 --- join: crc (n=charlesc@c-68-80-139-0.hsd1.pa.comcast.net) joined #forth 23:59:59 --- log: ended forth/09.08.19