zbyti Posted November 15, 2021 Share Posted November 15, 2021 Now I try emulate PEEK and POKE without assembly. Quote Link to comment Share on other sites More sharing options...
zbyti Posted November 15, 2021 Share 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 Link to comment Share on other sites More sharing options...
Kaj de Vos Posted November 15, 2021 Author Share 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 Link to comment Share on other sites More sharing options...
Kaj de Vos Posted November 15, 2021 Author Share Posted November 15, 2021 3 minutes ago, zbyti said: I try to loop 10 [] etc. That is repeat in Meta, like in Logo. Quote Link to comment Share on other sites More sharing options...
Kaj de Vos Posted November 15, 2021 Author Share 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 Link to comment Share on other sites More sharing options...
zbyti Posted November 15, 2021 Share Posted November 15, 2021 (edited) OK. I try something one more time. Edited November 15, 2021 by zbyti 1 Quote Link to comment Share on other sites More sharing options...
zbyti Posted November 15, 2021 Share 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 Link to comment Share on other sites More sharing options...
Kaj de Vos Posted November 15, 2021 Author Share Posted November 15, 2021 Site works here. Quote Link to comment Share on other sites More sharing options...
Kaj de Vos Posted November 15, 2021 Author Share Posted November 15, 2021 Does the Meta website work for you? Quote Link to comment Share on other sites More sharing options...
zbyti Posted November 15, 2021 Share Posted November 15, 2021 (edited) Not always. Edited November 15, 2021 by zbyti Quote Link to comment Share on other sites More sharing options...
Kaj de Vos Posted November 15, 2021 Author Share 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 Link to comment Share on other sites More sharing options...
zbyti Posted November 15, 2021 Share Posted November 15, 2021 yes. but compiler don't know that and communicate: Result is in file program.xex ok. now works again. Quote Link to comment Share on other sites More sharing options...
Kaj de Vos Posted November 15, 2021 Author Share Posted November 15, 2021 Yes, I saw it, that's odd. cURL will be replaced, anyway. Quote Link to comment Share on other sites More sharing options...
zbyti Posted November 15, 2021 Share 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 Link to comment Share on other sites More sharing options...
Kaj de Vos Posted November 15, 2021 Author Share Posted November 15, 2021 That's correct, count is not used as the counter variable. Quote Link to comment Share on other sites More sharing options...
Kaj de Vos Posted November 15, 2021 Author Share Posted November 15, 2021 If you want that, use for count 10 [] Quote Link to comment Share on other sites More sharing options...
zbyti Posted November 15, 2021 Share 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 Link to comment Share on other sites More sharing options...
Kaj de Vos Posted November 15, 2021 Author Share Posted November 15, 2021 Correct again, but now you have a 16-bit counter instead of 8-bit. Quote Link to comment Share on other sites More sharing options...
zbyti Posted November 15, 2021 Share 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 Link to comment Share on other sites More sharing options...
Kaj de Vos Posted November 15, 2021 Author Share Posted November 15, 2021 10 minutes ago, Kaj de Vos said: That's correct, count is not used as the counter variable. Quote Link to comment Share on other sites More sharing options...
zbyti Posted November 15, 2021 Share 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 Link to comment Share on other sites More sharing options...
Kaj de Vos Posted November 15, 2021 Author Share 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 Link to comment Share on other sites More sharing options...
zbyti Posted November 15, 2021 Share Posted November 15, 2021 but Quote Link to comment Share on other sites More sharing options...
Kaj de Vos Posted November 15, 2021 Author Share 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 Link to comment Share on other sites More sharing options...
zbyti Posted November 15, 2021 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.