Page 1 of 1

Poke Utility

Posted: Sat Mar 30, 2013 4:22 pm
by Jeff-20
I normally only make games. This is my first effort at making a utility program. I couldn't find one that quite fit the need I had, so I just made something myself.

POKE UTILITY is a small BASIC program for the unexpanded VIC that allows you to put a user-defined value (as a a decimal integer) in any possible RAM location in memory as a byte. It includes brief, in-program instructions and has not been tested with memory expansions.

You'll have to play around with it to get a sense of what it does. I hope some of you find it useful.

Image

download PRG

Posted: Sat Mar 30, 2013 7:37 pm
by Kweepa
Wow, I've been looking for a utility like this for years! Thanks!

Posted: Sun Mar 31, 2013 3:19 am
by Vic20-Ian
Surely there is a way to do this in direct mode from the command line?

I can't seem to remember how.

Thankfully Jeff is here to save the day.

Posted: Sun Mar 31, 2013 6:08 am
by Dirk Vroomen
Thanks a lot for that utility! Very clever, but a bit too late or too early. Who knows? Missed that one for about 30 years now: Searched in the Arpa- and Internet already, nothing similar found so far. BTW: Did Commodore wrote a manual for the VIC-20 back in the days?

Two complaints from me:
o The program should protect itself.
o Entering hex- and binary-values would have been nice.

More to come tomorrow? :wink:

Best regards,
Dirk

Posted: Sun Mar 31, 2013 8:58 am
by FD22
I've often thought that Microsoft really missed a trick when they decided not to implement the POKE command in the version of BASIC they licensed to Commodore. Can you imagine how much easier it would have been to set memory locations to any given value if there'd been a way to do it without having to resort to machine-code...

Posted: Sun Mar 31, 2013 2:51 pm
by Kweepa
It's so fast too!
And it checks the result!

(Didn't work with an expanded machine though. I guess having to check all those extra memory locations would be tough.)

Posted: Mon Apr 01, 2013 9:26 pm
by Schema
FD22 wrote:I've often thought that Microsoft really missed a trick when they decided not to implement the POKE command in the version of BASIC they licensed to Commodore. Can you imagine how much easier it would have been to set memory locations to any given value if there'd been a way to do it without having to resort to machine-code...
Heh. There was in fact a little third-party toolkit called "WinRT" that allowed you to do exactly that from a C++ program in Windows 95/NT/etc. (Not to be confused with the latest Windows RT).

Posted: Wed Apr 03, 2013 1:46 am
by Jeff-20
Thanks for trying my utility, everyone. I've been in discussions to add it to Mega-Cart.

Posted: Wed Apr 03, 2013 5:50 pm
by rhurst
Hey, I put my Facebook address instead of a decimal address, and it poked me instead -- way too cool!! 8)

Hmmm, I didn't see this make it into Mayhem's Gamebase 0.3 WIP release. What gives? :?

Posted: Thu Apr 04, 2013 1:38 am
by Jeff-20
rhurst wrote:Hey, I put my Facebook address instead of a decimal address, and it poked me instead -- way too cool!! 8)
:lol:

Posted: Thu Apr 04, 2013 2:45 am
by pallas
Jeff-20 wrote:Thanks for trying my utility, everyone. I've been in discussions to add it to Mega-Cart.
Well, it does make sense in a way: you could save the history of pokes into the nvram :D