Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:51 28 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Micromite Peek and Poke

Author Message
plasma
Guru

Joined: 08/04/2012
Location: Germany
Posts: 437
Posted: 11:07pm 18 Feb 2014
Copy link to clipboard 
Print this post

hi,

What can i do with these Commands in the Micromite ?
any hints ?

thx
 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 12:51am 19 Feb 2014
Copy link to clipboard 
Print this post

I guess those are useful especially when you lost some debates with Geoff regarding firmware implementation...
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6101
Posted: 10:39am 19 Feb 2014
Copy link to clipboard 
Print this post

I made use of them to create a method of having short strings to save space.

Not needed now since Geoff added the option to specify length for arrays.

http://www.thebackshed.com/forum/forum_posts.asp?TID=5236&KW =short+string

Poke can be dangerous to use!

Jim

VK7JH
MMedit   MMBasic Help
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 722
Posted: 10:46am 19 Feb 2014
Copy link to clipboard 
Print this post

  vasi said   I guess those are useful especially when you lost some debates with Geoff regarding firmware implementation...


Not a very usefull comment.

 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 10:55am 19 Feb 2014
Copy link to clipboard 
Print this post

Definitely, a bad joke, apologies! Doesn't matter what I thought about peek and poke in a microcontroller world...

Geoff could chose to make some special zones where those can be useful or drop them definitively. I can't wait for him to finish with the improvements also for the Maximites to start asking him for bytecode compilation where we will get a lot more memory space and execution speed. Maybe there peek and poke will be really useful?

Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3196
Posted: 04:34pm 19 Feb 2014
Copy link to clipboard 
Print this post

I only put in peek/poke because people kept asking for it - probably based on their experience with the TRS-80s of yesterday. Not because it was particularly useful.

Peek/poke might come in handy if you wanted to change the PIC32's registers and implement something that BASIC does not - but that would be rare because almost everything that the chip can do is handled by MMBasic anyway.

Geoff
Geoff Graham - http://geoffg.net
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9308
Posted: 06:54pm 19 Feb 2014
Copy link to clipboard 
Print this post

I have NEVER used any peek or poke command in MMBasic. Perhaps it is better to drop them from uM especially, along with you repeating the above to hammer home the reasons.....

I suppose it depends on if you would save much memory by removing them or not.
Smoke makes things work. When the smoke gets out, it stops!
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024