Rewrite time.

  • Thread starter Thread starter Old Git
  • Start date Start date
O

Old Git

Hello,

I'm learnig VB.NET and I want to rewrite some of my old Commodore Pet
programs in VB. I know it's not likely but I'm wondering if there are any old
timers, like myself, who know the Pet, but who are further down the road with
this VB.NET lark.

I'm trying to translate some of the cursor and display control strings,
such as CHR$(245) + CHR$(13) + CHR$(245) + CHR$(15). Of course thae actual
strings aren't like that, they contain embedded characters, but I can't paste
them here.

I also want to know what the VB.NET equivalent of the folloing

POKE 125, 17
POKE 23, N
N=N+1
POKE 24, N
POKE 125, 0

Any help would be greatly appreciated.
Brian
 
Hi,
for CHR$() you can use Chr():

Dim X As Char
X = Chr(13)

But poke is very system dependent, and will not serve the intended
purpose i think.

Cheers
Benny
 
Hi, there are no equivalent instructions for POKE (and PEEK?)

May I ask what the instructions do (not POKE, but what you are doing with
POKE)? Then we can offer alternatives.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Maybe it's a game called 'Punish the User'"
 
Back
Top