Search found 407 matches

by waskol
Fri Sep 07, 2018 10:33 pm
Forum: Emulators
Topic: Oricutron for android (POC)
Replies: 37
Views: 42146

Re: Oricutron for android (POC)

For myself, I cannot transfer any files to the emulator directory : root access is required because the directories are located in a where user can't have access rights (Lollipop, Wiko Fever).
by waskol
Fri Sep 07, 2018 7:55 pm
Forum: Emulators
Topic: Oricutron 1.0 (EDIT: Now 1.2)
Replies: 178
Views: 134065

Re: Oricutron 1.0 (EDIT: Now 1.2)

I am afraid, it is not the only bug, but it seems related to the Oric rom itself. It concerns the two other bytes, those located just to the right of those highlited by iss on his screenshot. iss bytes represent the memory address of the array in the BASIC stack at the moment they were saved. Those ...
by waskol
Sun Sep 02, 2018 6:04 pm
Forum: C programming
Topic: why ? why not... but why ?
Replies: 2
Views: 4151

Re: why ? why not... but why ?

Thank you sir ! I can confirm you that if I comment the #define rand() in lib.h, it works as expected, and I gain about 400 bytes of data. What is surprising, is that the value of n is just good right after the call to rnd() in my snippet. and you can put 1 or 2 more printf(" n : %d ",n); between th...
by waskol
Sun Sep 02, 2018 3:41 pm
Forum: C programming
Topic: why ? why not... but why ?
Replies: 2
Views: 4151

why ? why not... but why ?

If I compile this simple test program in OSDK : #include <lib.h> char rnd(char max); int i,st; char n=0; char stat[4]={0,0,0,0}; void main() { for(i=0;i<10;i++) { n=rnd(3); printf(" n : %d ",n); stat[n]=stat[n]+1; printf(" n : %d ",n); printf(" stat[n] : %d\n",stat[n]); //printf("%d\n",rand()); } pr...
by waskol
Thu Aug 30, 2018 11:29 am
Forum: C programming
Topic: some missing functions in OSDK
Replies: 6
Views: 4902

Re: some missing functions in OSDK

ok, here are the explanations (in french, from Debug) : - Ce ne sont pas des routines assembleur, en gros c'est le code du compilateur C après compilation, donc ca rame, et ca prend de la place. - Elles sont redondantes, pas besoin d'avoir quatre versions de PLOT dont le code est a 90% identique (ca...
by waskol
Wed Aug 29, 2018 10:05 pm
Forum: C programming
Topic: Compiling OK, Build fail, where is the problem ???
Replies: 2
Views: 3683

Compiling OK, Build fail, where is the problem ???

I rewrote oric kong into C The basic program was an horrible thing, the resulting C code is kind of hugly too (but without POP, goto outside a sub procedure, etc...). Anyway, this is the output when I build the thing : Building the program ORICKONG at adress $800 Compiling main.C - preprocess - comp...
by waskol
Wed Aug 29, 2018 9:36 pm
Forum: C programming
Topic: some missing functions in OSDK
Replies: 6
Views: 4902

Re: some missing functions in OSDK

Forget it, debug explained me why it was sooooo stupid.
and i understood how it was possible to sort all of that out without those extra dumb things ! :oops:
by waskol
Wed Aug 29, 2018 12:42 pm
Forum: Games
Topic: OricJoy : a gaming frontend for oricutron, with gamepad support
Replies: 3
Views: 3626

Re: OricJoy : a gaming frontend for oricutron, with gamepad support

I updated Oricjoy, forcing windows of oricutron and oricjoy to top most windows.

Link updated for v1.5 in first post.
by waskol
Tue Aug 28, 2018 8:46 pm
Forum: Emulators
Topic: Bug oricutron with pulsoid french (not with english)
Replies: 0
Views: 6846

Bug oricutron with pulsoid french (not with english)

It triggers the Debugger/Monitor. Does any other french version of pulsoid is "oricutron friendly" ?

May be it is a bug of oricutron, since xenon 3 triggers automatically printing in oricutron ???
I use oricutron v1.4
by waskol
Tue Aug 28, 2018 7:40 pm
Forum: C programming
Topic: fgets ? how to ?
Replies: 2
Views: 2910

Re: fgets ? how to ?

I do not look specifically for a fgets, with stream support, just something that will do the job. for asm, I am out : noob inside. in c, ok, but how. get the char, print it, and block input when max_length is reached ok. I don't feel comfortable enough to do it. mainly when the del key is used to de...
by waskol
Tue Aug 28, 2018 7:22 pm
Forum: C programming
Topic: some missing functions in OSDK
Replies: 6
Views: 4902

some missing functions in OSDK

I found them on the oric.org forum, they needed to be addapted in order to compile with osdk, but it was not too difficult : ATOF.S (ALPHA TO FLOAT) ATOI.S (ALPHA TO INTEGER) FTOA.S (FLOAT TO ALPHA) RND.S (RND de l'ORIC) SCRN.S (SCRN de l'ORIC) PLOA.S (PLOT ATTRIBUT de l'ORIC) PLOC.S (PLOT CHAR de l...
by waskol
Tue Aug 28, 2018 4:33 pm
Forum: C programming
Topic: fgets ? how to ?
Replies: 2
Views: 2910

fgets ? how to ?

Porting Oric kong to c, I was wondering how it would be possible to achieve a secured string input in C, with osdk. What I would like to achieve : #include <stdio.h> #include <stdlib.h> #include <string.h> // for strchr() int my_input(char *Astring, int max_length) { char *inputPosition = NULL; // r...
by waskol
Mon Aug 27, 2018 8:11 pm
Forum: Cross development tools
Topic: BomberZ.bas and bas2tap ..
Replies: 20
Views: 12071

Re: BomberZ.bas and bas2tap ..

Hi, I am the author of the label2num and I am very happy to see it included with bas2tap. BASIC lines have always been a kind of pain. The idea was to bring some a bit of flexibility in order to code for the oric. BomberZ is a type in program took in the book "Oric Atmos, vos programmes" by Michel B...
by waskol
Mon Aug 27, 2018 7:14 pm
Forum: Mags and books
Topic: Mistakes in books: French Atmos manual
Replies: 5
Views: 12635

Re: Mistakes in books: French Atmos manual

Hello, very interesting :) But... Ho yes, the "GO" instruction exists ! (this instruction is a prefix for "TO" and "SUB", no kidding : "GO"+"TO"=GOTO "GO"+"SUB"=GOSUB in the 70's and 80's, very often some listing were written like this : 10 GO TO 20 20... for instance, have a look here : :D I think ...