Hi there
After an absence of about 20 years I have decided to start a little bit of VIC programming, I have VICE up and running and thought before I start coding in assembler I might have a bash at cbm basic first. My plan is in time to buy myself another VIC at some point over the next few months (my parents threw out my original when I went to uni).
My question is how to start? I know that I can enter the code straight into VICE but I'd rather use a more modern IDE, so the first question is what do people recommend bearing in mind I use Linux. from having a play around with VICE it seems that it isn't possible to copy and past code into it (please correct me if i'm wrong) so presumably I need a way of compiling / interpreting the code to a file that can be run on VICE?
I have been trawling the internet for a few days now looking for answers to these questions but drawing a blank, most of the stuff i find is quite high level where as I need a beginners guide to VICE and CBM programming on Linux
Apologies if you feel i'm wasting your time
Mike
Getting started
Moderator: Moderators
-
- Vic 20 Hobbyist
- Posts: 143
- Joined: Thu Aug 25, 2011 10:04 am
For me, I really enjoy CBM programming studio. You can program in basic or assembly (I mainly do assembly though)
Phil Ranger
-------------
"Don't eat the trees 2" for the VIC 20 : http://www.box.net/shared/u398kj0nr0lkauzm1k67
on line: http://www.mdawson.net/vic20chrome/vic2 ... otrees.prg
-------------
"Don't eat the trees 2" for the VIC 20 : http://www.box.net/shared/u398kj0nr0lkauzm1k67
on line: http://www.mdawson.net/vic20chrome/vic2 ... otrees.prg
-
- 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
Perhaps this might help if you are using Linux for CBM BASIC programming... petcat is your friend, do `man petcat` for full details.
The -l 1001 is to load code @ unexpanded VIC memory address. Change to -l 1201 if you need to use 8k+ expansion. The -w2 mght not be necessary; it enforces BASIC 2.0 tokenization. And use whatever text editor suits you.
The reverse is true, too, you can petcat hello.p00 to get back your text file. A dump of the "binary" reveals the format:
Code: Select all
$ vim hello.bas
10 input"your name";a$
20 ifa$=""thenend
30 print"{down}hello, ";a$;"{down}"
40 run
$ petcat -l 1001 -o hello.p00 -w2 hello.bas
$ xvic -autostart hello.p00
The reverse is true, too, you can petcat hello.p00 to get back your text file. A dump of the "binary" reveals the format:
Code: Select all
$ hexdump -C hello.p00
00000000 01 10 15 10 0a 00 85 22 59 4f 55 52 20 4e 41 4d |......."YOUR NAM|
00000010 45 22 3b 41 24 00 22 10 14 00 8b 41 24 b2 22 22 |E";A$."....A$.""|
00000020 a7 80 00 39 10 1e 00 99 22 11 48 45 4c 4c 4f 2c |...9....".HELLO,|
00000030 20 22 3b 41 24 3b 22 11 22 00 3f 10 28 00 8a 00 | ";A$;".".?.(...|
00000040 00 00 |..|
Any technology distinguishable from magic is insufficiently advanced.
https://robert.hurst-ri.us/rob/retrocomputing
https://robert.hurst-ri.us/rob/retrocomputing