ccz80

Would you like to react to this message? Create an account in a few clicks or log in to continue.
ccz80

ccz80 programming language


2 posters

    with float go not #1200... start

    avatar
    funkheld


    Posts : 51
    Join date : 2009-12-16
    Age : 75
    Location : germany, lüneburg

    with float go not  #1200... start Empty with float go not #1200... start

    Post  funkheld Fri Dec 25, 2009 11:25 pm

    with float go the #4000 not with #1200.
    no float go the with #1200.

    why?

    Code:

    include "cpc6128.ccz80";

    array byte xf[5];
    array byte yf[5];
    array byte gradf[5];
    array byte wertf[5];
    word i,zaehler;
    byte a;

    zaehler=360;
    deg();

    atof(wertf,"170.0");

    mode(2);

    for (i = 0; i <= zaehler; i=i+5)
    {
      fcpy(xf,mul(sin(wtof(gradf,i)),wertf));
      fcpy(yf,mul(cos(wtof(gradf,i)),wertf));

      move(320,200);
      drawr(ftow(xf),ftow(yf));
    }

    move(10,10);
    drawr(520,400);

    clearinput();
    while(!(a=inkey()));

    return;
    avatar
    Dinoneno


    Posts : 115
    Join date : 2008-01-15
    Age : 54
    Location : Toledo

    with float go not  #1200... start Empty Re: with float go not #1200... start

    Post  Dinoneno Sun Dec 27, 2009 4:26 am

    I don't know the correct response, but you can't compile below #4000 if you use floats. Maybe can be because the ROM is solaped into RAM from #0000 to #3FFF, and that not allow use this address for programa.
    avatar
    funkheld


    Posts : 51
    Join date : 2009-12-16
    Age : 75
    Location : germany, lüneburg

    with float go not  #1200... start Empty Re: with float go not #1200... start

    Post  funkheld Wed Dec 30, 2009 1:20 am

    the ROM is solaped into RAM from #0000 to #3FFF,

    not about with #2000 - #4000

    The loop the start #2000 not !

    why?

    gruss
    avatar
    Dinoneno


    Posts : 115
    Join date : 2008-01-15
    Age : 54
    Location : Toledo

    with float go not  #1200... start Empty Re: with float go not #1200... start

    Post  Dinoneno Fri Jan 01, 2010 11:46 pm

    funkheld wrote:the ROM is solaped into RAM from #0000 to #3FFF,

    not about with #2000 - #4000

    The loop the start #2000 not !

    why?

    gruss

    Sorry, I don't understand the last message Neutral
    avatar
    funkheld


    Posts : 51
    Join date : 2009-12-16
    Age : 75
    Location : germany, lüneburg

    with float go not  #1200... start Empty Re: with float go not #1200... start

    Post  funkheld Sat Jan 02, 2010 1:35 am


    Sorry, I don't understand the last message

    ROM ist not in the #2000 - #4000.

    BIN and ROM not kollision.
    avatar
    Dinoneno


    Posts : 115
    Join date : 2008-01-15
    Age : 54
    Location : Toledo

    with float go not  #1200... start Empty Re: with float go not #1200... start

    Post  Dinoneno Sat Jan 02, 2010 7:04 am

    Ah! I thinked that low rom is solaped from #0000 to #FFFF Razz
    avatar
    funkheld


    Posts : 51
    Join date : 2009-12-16
    Age : 75
    Location : germany, lüneburg

    with float go not  #1200... start Empty Re: with float go not #1200... start

    Post  funkheld Sat Jan 02, 2010 7:28 am

    Ye think :
    The Basic : "memory &11ff" and then binär with &1200 load ?

    Gruss

    Sponsored content


    with float go not  #1200... start Empty Re: with float go not #1200... start

    Post  Sponsored content


      Current date/time is Fri May 10, 2024 10:34 pm