Omnimaga

Calculator Community => Casio Calculators => Topic started by: Eiyeron on August 10, 2011, 03:24:10 pm

Title: Acces to characters
Post by: Eiyeron on August 10, 2011, 03:24:10 pm
Hello world!
I wanted to make my function Print, which combinated to a user library would make the sdk library useless, just for graphics.
BUT, i dunno how to acces to the characters inside the calculator.

Is a syscall or an adress existing?

Thanks
Title: Re: Acces to characters
Post by: AngelFish on August 10, 2011, 03:55:49 pm
I don't understand what you want to do. Are you trying to make another PrintXY routine?
Title: Re: Acces to characters
Post by: Eiyeron on August 10, 2011, 04:09:20 pm
Nope, just a new Print routine. I already got the locate routine in a syscall, foud by SimonLothar.
Title: Re: Acces to characters
Post by: AngelFish on August 10, 2011, 04:16:25 pm
What do you mean by "Print?"
Title: Re: Acces to characters
Post by: Eiyeron on August 10, 2011, 04:17:36 pm
locate(1,1);
Print("Hello");

Just the SDK's Print.
Title: Re: Acces to characters
Post by: fxdev on August 11, 2011, 09:31:13 am
This is a very simple version:

Code: [Select]
    .SECTION P, CODE, ALIGN=4

    .MACRO SYSCALL NUM, NAME
    .export \NAME
    \NAME:
        mov.l #h'0000\NUM, r0
        mov.l #h'80020070, r1
        jmp @r1
        nop
    .ENDM

    SYSCALL 01F9, _print
    SYSCALL 1863, _locate

    .end

Code: [Select]
void print(const unsigned char *str, int type, int zero);
void Print(const unsigned char *str);
void PrintRev(const unsigned char *str);

void
Print(const unsigned char *str)
{
        print(str, 0, 0);

        return;
}

void
PrintRev(const unsigned char *str)
{
        print(str, 1, 0);

        return;
}
Title: Re: Acces to characters
Post by: Eiyeron on August 11, 2011, 10:17:55 am
Yay! a syscall! Thanks!
BUt to avoir the casio's functions, do you know where the bitmaps, are located?
We don't like casio's function, i.e. Here a PierrotLL's Library (http://www.planet-casio.com/Fr/logiciels/voir_un_logiciel_casio.php?logiciel=SDK_G85_-_MonochromeLib_&showid=86)

How many syscalls do we got? I know SimonLothar the syscall master, but he doesn't want to make a documentation.
There would be a syscall seraching team!
Title: Re: Acces to characters
Post by: MPoupe on August 11, 2011, 11:59:17 am
How many syscalls do we got? I know SimonLothar the syscall master, but he doesn't want to make a documentation.
What ?
Check this: http://ourl.ca/9205, download the latest fxCG_miniSDK_X_xx.zip (currently fxCG_miniSDK_1_09.zip), extract it and read fx_calculators_SuperH_based.chm. Everything is there !

Title: Re: Acces to characters
Post by: Eiyeron on August 11, 2011, 05:01:50 pm
Sames for Fx9860? Oo

EDIT: Thank you! Thank you! That's the list I ever wondered! :p