Search found 193 matches

by pallas
Tue Mar 26, 2013 9:53 am
Forum: Programming
Topic: [Q] running a prg from C (or asm)
Replies: 15
Views: 2806

Thanks for the information. This is the new version: int p = 4613; POKE(p++, 147); // load POKE(p++, 34); // " memcpy((void*)p, cmd, strlen(cmd)); p += strlen(cmd); POKE(p++, 34); // " POKE(p++, 44); // , POKE(p++, 56); // 8 POKE(p++, 0); POKEW(p, 0); // prg end POKE(45,PEEK(34)); // set f...
by pallas
Tue Mar 26, 2013 7:59 am
Forum: Programming
Topic: [Q] running a prg from C (or asm)
Replies: 15
Views: 2806

I've gone a bit forward but still have problems. This is the current code: char* str = "\"ciao.prg\",8"; // sample loading basic code POKE(4610, 1); // ? POKE(4613, 156); // clr POKE(4614, 58); // : POKE(4615, 147); // load memcpy((void*)4616, str, strlen(str)); memset((void*)(46...
by pallas
Sat Mar 23, 2013 11:38 am
Forum: Programming
Topic: Cbmsh - A Unix-like shell for the commodores
Replies: 43
Views: 12070

I agree with all of you, maybe it's a useless program.
Nevertheless I'm having fun making it and I think it's a cool project; and since I do not do it for work, that's enough for me to go on :)
by pallas
Sat Mar 23, 2013 9:08 am
Forum: Programming
Topic: Cbmsh - A Unix-like shell for the commodores
Replies: 43
Views: 12070

Currently it's a standalone program with the basic built-in commands like ls, more, source, cp, mv, etc. It can execute "scripts" but only containing the built-in commands or launch other programs (no language constructs). It has working wildcard expansion, aliases and some other features.
by pallas
Sat Mar 23, 2013 7:08 am
Forum: Programming
Topic: Cbmsh - A Unix-like shell for the commodores
Replies: 43
Views: 12070

Boray wrote:But... Why would this be useful?
Have you ever used a Unix like shell?
Even if you find it useless, it's funny to do and pretty cool, IMHO.
Your mileage may vary ;-)
by pallas
Sat Mar 23, 2013 5:24 am
Forum: Emulation and Cross Development
Topic: [Port] Vice Vic-20 for Android
Replies: 32
Views: 17368

Could you please try this apk: http://www.opbyte.it/vic20/vice-vic20-android_alpha4.apk It should fix the bug you reported. There is still a problem with the arm version of your cpu: if you have an old armv6, it will probably crash. This is caused by a problem with all the compiling scripts which me...
by pallas
Sat Mar 23, 2013 4:09 am
Forum: Emulation and Cross Development
Topic: [Port] Vice Vic-20 for Android
Replies: 32
Views: 17368

Thanks very much for the logcat. It looks like the View.addOnLayoutChangeListener() is not available on your system, and the api documentation says it's indeed from android 3.0. Now, why the compiler didn't tell me I was requesting an api call which is not available on the target system, is a mister...
by pallas
Fri Mar 22, 2013 8:00 am
Forum: Programming
Topic: Cbmsh - A Unix-like shell for the commodores
Replies: 43
Views: 12070

Now it's mostly working.

What's missing:

- program execution
- fitting 16k
- "ls" options
- chdir and pwd can manage devices only, no subdirs

Image
by pallas
Fri Mar 22, 2013 2:37 am
Forum: Programming
Topic: [Q] running a prg from C (or asm)
Replies: 15
Views: 2806

Thanks.
Probably, I also need to relocate the loading code somewhere it's not touched by the load call itself (like the cassette buffer?), and run it from there.
I fear it's not trivial to do it in C and I should start looking at asm code closer :)
by pallas
Thu Mar 21, 2013 7:03 am
Forum: Programming
Topic: [Q] running a prg from C (or asm)
Replies: 15
Views: 2806

[Q] running a prg from C (or asm)

Hello, for my upcoming shell, I need to make a routine to run a prg file from my C code. i have taken a couple lines of code from cbm filebrowser which does: JSR $C533 ; Relinks BASIC Program from and to any address... JMP $C7AE ; BASIC Warm Start (RUN) so I did: if (cbm_load(cmd, 8, NULL) > 0) asm(...
by pallas
Thu Mar 21, 2013 5:27 am
Forum: Programming
Topic: Cbmsh - A Unix-like shell for the commodores
Replies: 43
Views: 12070

Turned out it was a compiler problem indeed. Reverted some svn revisions back and now, no more crashes!
Let me fix some more evident bugs and then I'll post it.
Cheers! :-)
by pallas
Tue Mar 19, 2013 7:58 am
Forum: Programming
Topic: Cbmsh - A Unix-like shell for the commodores
Replies: 43
Views: 12070

Progress: I was able to compile a heavily modified sash but it crashes like hell. I think it's because I'm using the svn version of cc65. I can't use the stable one because it misses some features I need. Changing an empty loop from 0 iterations to some causes a crash, so it must be something relate...
by pallas
Tue Mar 19, 2013 4:09 am
Forum: Programming
Topic: Get the first program to automatically load the next part
Replies: 24
Views: 2950

I've seen tape programs auto-running themselves, I suppose they fiddle with the start address or something.
by pallas
Mon Mar 18, 2013 3:05 am
Forum: Programming
Topic: Cbmsh - A Unix-like shell for the commodores
Replies: 43
Views: 12070

Thanks Mike for the information. I didn't have much time this weekend to work on this, but I did have a look around to see what minimal shells, written in C, are available. There are a lot, because of the use in embedded systems, network equipment etc. There is one that is promising, it's called &qu...
by pallas
Sat Mar 16, 2013 4:41 am
Forum: Programming
Topic: Cbmsh - A Unix-like shell for the commodores
Replies: 43
Views: 12070

Cbmsh - A Unix-like shell for the commodores

Update: cbmsh now has its own web page: http://www.opbyte.it/cbmsh/ But this thread will continue to be the main discussion resource. *** Original post: *** I was looking for a unix-like shell (or of any kind) for the vic but couldn't find any. So I thought I could make one, but I've got too many un...