Search found 88 matches: casio

Searched query: casio

by Zezombye
Thu Nov 29, 2018 3:06 pm
Forum: Development of MicroPython
Topic: How do I make a port of MicroPython for Casio calculators?
Replies: 66
Views: 58715

Re: How do I make a port of MicroPython for Casio calculators?

Hi, Unfortunately I have 2 more problems with Micropython. The first one is that, for some reason, my app crashes when I call a recursive function with too much depth. For example, this simple recursive function: def r(n): if n == 0: return 0 else: return 1+r(n-1) Calling up to r(63) works fine, but...
by Zezombye
Sat Nov 24, 2018 9:44 pm
Forum: Development of MicroPython
Topic: How do I make a port of MicroPython for Casio calculators?
Replies: 66
Views: 58715

Re: How do I make a port of MicroPython for Casio calculators?

I would like to allow the user to get out of an infinite loop. At the moment this is impossible: as MPy is not waiting for a key, all keys are ignored, and the only way to interrupt the loop is by pressing the hardware reset button. I could put a timer that listens separately for the [EXIT] key and ...
by Zezombye
Sun Nov 18, 2018 5:25 pm
Forum: General Discussion and Questions
Topic: How does Micropython avoid double precision issues?
Replies: 3
Views: 3225

How does Micropython avoid double precision issues?

... old IEEE754 floats. - How does Micropython avoid these kinds of double precision issues? - Is there an operation where a BCD system (used by TI/casio calculators) would return a different answer from Micropython?
by Zezombye
Thu Nov 15, 2018 7:23 pm
Forum: Development of MicroPython
Topic: How do I make a port of MicroPython for Casio calculators?
Replies: 66
Views: 58715

Re: How do I make a port of MicroPython for Casio calculators?

Found the solution thanks to https://github.com/adafruit/circuitpython/issues/130

In the makefile, replace "none" with "mpz":

Code: Select all

	$(Q)$(TOP)/tools/mpy-tool.py -f -q $(BUILD)/genhdr/qstrdefs.preprocessed.h -mlongint-impl=none $< > $@
by Zezombye
Wed Nov 14, 2018 6:02 am
Forum: Development of MicroPython
Topic: How do I make a port of MicroPython for Casio calculators?
Replies: 66
Views: 58715

Re: How do I make a port of MicroPython for Casio calculators?

It comes from build/_frozen_mpy.c:

Code: Select all

#if MICROPY_LONGINT_IMPL != 0
#error "incompatible MICROPY_LONGINT_IMPL"
#endif
Apparently MPy believes that any implementation of long int is incompatible. Why is that? I looked inside mpz.c and 32-bit seems to be supported.
by dhylands
Tue Nov 13, 2018 8:32 pm
Forum: Development of MicroPython
Topic: How do I make a port of MicroPython for Casio calculators?
Replies: 66
Views: 58715

Re: How do I make a port of MicroPython for Casio calculators?

The MICROPY_LONGINT_IMPL_MPZ is what you want. MPZ implement arbitrary precision integers. You can find the support files in the py directory: https://github.com/micropython/micropython/blob/master/py/mpz.h https://github.com/micropython/micropython/blob/master/py/mpz.c I'm not sure where the incomp...
by Zezombye
Tue Nov 13, 2018 6:31 pm
Forum: Development of MicroPython
Topic: How do I make a port of MicroPython for Casio calculators?
Replies: 66
Views: 58715

Re: How do I make a port of MicroPython for Casio calculators?

... found these long-int implementations: - MICROPY_LONGINT_IMPL_NONE (int is limited to 2^31 bits) - MICROPY_LONGINT_IMPL_LONGLONG (can't use it as Casio doesn't have 64-bit, and no long long) - MICROPY_LONGINT_IMPL_MPZ (no idea what it is, throws a preprocessor error "incompatible MICROPY_LONGINT_IMPL") ...
by Zezombye
Tue Nov 13, 2018 5:45 pm
Forum: Development of MicroPython
Topic: How do I make a port of MicroPython for Casio calculators?
Replies: 66
Views: 58715

Re: How do I make a port of MicroPython for Casio calculators?

As 2064 is very close to a power of 2, I think there is a hardcoded limit somewhere. I don't think there is a coincidence because 2 kb is quite low I knew it, there is indeed a hardcoded limit (in main.c, hiding in plain sight): static char heap[2048]; Changing the size of the heap works, but in my...
by pfalcon
Wed Sep 12, 2018 9:56 pm
Forum: Announcements and News
Topic: MicroPython in Casio's graphic calculator
Replies: 1
Views: 49975

MicroPython in Casio's graphic calculator

http://edu.casio.com/products/graphic/fxcg50/#Python "Python mode supports a version of MicroPython Version 1.9.4, which has been adapted to run on this calculator. Please note that MicroPython is different from the Python that ...
by jickster
Sat Sep 08, 2018 11:24 am
Forum: Development of MicroPython
Topic: How do I make a port of MicroPython for Casio calculators?
Replies: 66
Views: 58715

Re: How do I make a port of MicroPython for Casio calculators?

Micropython is a work in progress.


Sent from my iPhone using Tapatalk Pro