zbyti #126 Posted November 15, 2021 Now I try emulate PEEK and POKE without assembly. Quote Share this post Link to post Share on other sites
zbyti #127 Posted November 15, 2021 If I want to write in ASM I know MADS essentials I try to loop 10 [] etc. write/line always ends with "repeat until keypressed" and so on. I must wait, to early for me Quote Share this post Link to post Share on other sites
Kaj de Vos #128 Posted November 15, 2021 6 minutes ago, zbyti said: Now I try emulate PEEK and POKE without assembly. Those are primitive, you have address definitions. Quote Share this post Link to post Share on other sites
Kaj de Vos #129 Posted November 15, 2021 3 minutes ago, zbyti said: I try to loop 10 [] etc. That is repeat in Meta, like in Logo. Quote Share this post Link to post Share on other sites
Kaj de Vos #130 Posted November 15, 2021 4 minutes ago, zbyti said: write/line always ends with "repeat until keypressed" and so on. That is not write/line, Meta does that on a DOS with a menu to enable you to read the output. Quote Share this post Link to post Share on other sites
zbyti #131 Posted November 15, 2021 (edited) OK. I try something one more time. Edited November 15, 2021 by zbyti 1 Quote Share this post Link to post Share on other sites
zbyti #132 Posted November 15, 2021 ./compile test.meta Compiling file test.meta % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:09 --:--:-- 0curl: (6) Could not resolve host: atari8.metaproject.frl Result is in file program.xex Quote Share this post Link to post Share on other sites
Kaj de Vos #133 Posted November 15, 2021 Site works here. Quote Share this post Link to post Share on other sites
Kaj de Vos #134 Posted November 15, 2021 Does the Meta website work for you? Quote Share this post Link to post Share on other sites
zbyti #135 Posted November 15, 2021 (edited) Not always. Edited November 15, 2021 by zbyti Quote Share this post Link to post Share on other sites
Kaj de Vos #136 Posted November 15, 2021 The API is the same server, so if you have an unreliable connection with the site, it would also affect the API. Quote Share this post Link to post Share on other sites
zbyti #137 Posted November 15, 2021 yes. but compiler don't know that and communicate: Result is in file program.xex ok. now works again. Quote Share this post Link to post Share on other sites
Kaj de Vos #138 Posted November 15, 2021 Yes, I saw it, that's odd. cURL will be replaced, anyway. Quote Share this post Link to post Share on other sites
zbyti #139 Posted November 15, 2021 Interesting: count: 10 repeat count [write/line count: 10 - count] write/line "end" count: 10 repeat count [write/line count: 10 + count] write/line "end" count: 10 repeat count [write/line count: count + 1] write/line "end" count: 10 repeat count [write/line count: count - 1] write/line "end" Quote Share this post Link to post Share on other sites
Kaj de Vos #140 Posted November 15, 2021 That's correct, count is not used as the counter variable. Quote Share this post Link to post Share on other sites
Kaj de Vos #141 Posted November 15, 2021 If you want that, use for count 10 [] Quote Share this post Link to post Share on other sites
zbyti #142 Posted November 15, 2021 (edited) and now? count: 1000 repeat count [write/line 1000 - count] write/line "end" Edited November 15, 2021 by zbyti Quote Share this post Link to post Share on other sites
Kaj de Vos #143 Posted November 15, 2021 Correct again, but now you have a 16-bit counter instead of 8-bit. Quote Share this post Link to post Share on other sites
zbyti #144 Posted November 15, 2021 (edited) 1 minute ago, Kaj de Vos said: Correct again, but now you have a 16-bit counter instead of 8-bit. but why 8-bit counter produced 0,10,0,10... and 16-bit correctly only 0? Edited November 15, 2021 by zbyti Quote Share this post Link to post Share on other sites
Kaj de Vos #145 Posted November 15, 2021 10 minutes ago, Kaj de Vos said: That's correct, count is not used as the counter variable. Quote Share this post Link to post Share on other sites
zbyti #146 Posted November 15, 2021 count: 10 repeat count [write/line count: 10 - count] and count: 1000 repeat count [write/line count: 1000 - count] are not the same? Quote Share this post Link to post Share on other sites
Kaj de Vos #147 Posted November 15, 2021 Actually, count= 10 would give you an 8-bit loop. 2 minutes ago, zbyti said: count: 10 - count is different from 3 minutes ago, zbyti said: count: 1000 - count no? Quote Share this post Link to post Share on other sites
Kaj de Vos #149 Posted November 15, 2021 19 minutes ago, Kaj de Vos said: That's correct, count is not used as the counter variable. 14 minutes ago, Kaj de Vos said: If you want that, use for count 10 [] Quote Share this post Link to post Share on other sites
zbyti #150 Posted November 15, 2021 (edited) Why if I subtract 10 from 10 I have alternating result and if 1000 from 1000 is still 0. I don't get it, the counter VARIABLE doesn't overlap and it's still not 0 in the first case. --- EDIT --- I understand repeat has its internal counter, I ask about MY variable. Edited November 15, 2021 by zbyti Quote Share this post Link to post Share on other sites