Post Reply 
hpgcc2 loop problem
03-16-2021, 12:42 AM (This post was last modified: 03-16-2021 12:47 AM by BINUBALL.)
Post: #6
RE: hpgcc2 loop problem
(03-15-2021 05:55 PM)Egan Ford Wrote:  Can you try to just pop/push and see if the input and output are the same? I agree it may be a float/int thing.

Also for int use n = sat_pop_zint_llong();

Try that.

Code:
#include <hpgcc49.h>

int main(void)
{
    int n;
    // get stack 1 real number
    n = sat_pop_real();
    // output
    sat_push_real(n);
    return(0);
}

I wrote that code and bug happens too. 1000 -> 999, 1001 -> 1000..

Then what I have to use instead of sat_push_real()?
sat_push_zint()?
sat_push_zint_llong()?

S.Korean / 50G | fx-570EX | 200LX
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
hpgcc2 loop problem - BINUBALL - 03-13-2021, 06:41 AM
RE: hpgcc2 loop problem - brickviking - 03-15-2021, 10:14 AM
RE: hpgcc2 loop problem - toml_12953 - 03-15-2021, 10:22 AM
RE: hpgcc2 loop problem - BINUBALL - 03-15-2021, 11:18 AM
RE: hpgcc2 loop problem - Egan Ford - 03-15-2021, 05:55 PM
RE: hpgcc2 loop problem - BINUBALL - 03-16-2021 12:42 AM
RE: hpgcc2 loop problem - BINUBALL - 03-16-2021, 03:34 AM
RE: hpgcc2 loop problem - Egan Ford - 03-18-2021, 05:01 PM
RE: hpgcc2 loop problem - Claudio L. - 03-16-2021, 04:20 PM
RE: hpgcc2 loop problem - Egan Ford - 03-18-2021, 05:02 PM
RE: hpgcc2 loop problem - Claudio L. - 03-19-2021, 02:51 PM
RE: hpgcc2 loop problem - BINUBALL - 03-20-2021, 07:38 AM
RE: hpgcc2 loop problem - BINUBALL - 03-17-2021, 01:19 AM



User(s) browsing this thread: 1 Guest(s)