Poke Utility

Basic and Machine Language

Moderator: Moderators

Post Reply
User avatar
Jeff-20
Denial Founder
Posts: 5759
Joined: Wed Dec 31, 1969 6:00 pm

Poke Utility

Post 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
High Scores, Links, and Jeff's Basic Games page.
User avatar
Kweepa
Vic 20 Scientist
Posts: 1314
Joined: Fri Jan 04, 2008 5:11 pm
Location: Austin, Texas
Occupation: Game maker

Post by Kweepa »

Wow, I've been looking for a utility like this for years! Thanks!
Vic20-Ian
Vic 20 Scientist
Posts: 1214
Joined: Sun Aug 24, 2008 1:58 pm

Post 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.
Vic20-Ian

The best things in life are Vic-20

Upgrade all new gadgets and mobiles to 3583 Bytes Free today! Ready
Dirk Vroomen
Vic 20 Newbie
Posts: 13
Joined: Sat Nov 10, 2012 7:59 am

Post 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
FD22
Vic 20 Hobbyist
Posts: 148
Joined: Mon Feb 15, 2010 12:31 pm

Post 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...
User avatar
Kweepa
Vic 20 Scientist
Posts: 1314
Joined: Fri Jan 04, 2008 5:11 pm
Location: Austin, Texas
Occupation: Game maker

Post 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.)
User avatar
Schema
factor
Posts: 1430
Joined: Tue Mar 23, 2004 7:07 am
Website: http://www.jammingsignal.com
Location: Toronto, Ontario

Post 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).
User avatar
Jeff-20
Denial Founder
Posts: 5759
Joined: Wed Dec 31, 1969 6:00 pm

Post by Jeff-20 »

Thanks for trying my utility, everyone. I've been in discussions to add it to Mega-Cart.
High Scores, Links, and Jeff's Basic Games page.
rhurst
Omega Star Commander
Posts: 1371
Joined: Thu Jan 31, 2008 2:12 pm
Website: https://robert.hurst-ri.us
Location: Providence, RI
Occupation: Tech & Innovation

Post 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? :?
Any technology distinguishable from magic is insufficiently advanced.
https://robert.hurst-ri.us/rob/retrocomputing
User avatar
Jeff-20
Denial Founder
Posts: 5759
Joined: Wed Dec 31, 1969 6:00 pm

Post 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:
High Scores, Links, and Jeff's Basic Games page.
pallas
Vic 20 Devotee
Posts: 212
Joined: Mon Dec 24, 2012 2:38 am

Post 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
Post Reply