Skip to content

Fix bug in INP() that caused Overflow error#32

Open
f-fix wants to merge 2 commits into
hra1129:mainfrom
f-fix:main
Open

Fix bug in INP() that caused Overflow error#32
f-fix wants to merge 2 commits into
hra1129:mainfrom
f-fix:main

Conversation

@f-fix

@f-fix f-fix commented Jul 4, 2026

Copy link
Copy Markdown

The result of INP(...) is an integer, but it was not setting the expression type correctly so FRCINT was called with wrong values and caused an Overflow error.

Fixes #33

f-fix added 2 commits July 4, 2026 14:55
Return type was actually integer, but not marked that way and it caused `Overlow`.
f-fix added a commit to f-fix/openMSX that referenced this pull request Jul 7, 2026
…e older versions to reduce confusion. This version newly incorporates the `BACONLDR.BIN` loader+runtime library for the (MIT-licensed) [MSX-BACON](https://github.com/hra1129/msx_basic_compiler) BASIC compiler, which is used to build a precompiled version of the test suite. This precompiled version loads and runs quite a bit faster on machines with disks and sufficient RAM (64K or more). This precompiled version of the test suite is assembled using [zma](https://github.com/hra1129/zma). To rebuild the precompiled test suite requires an MSX-BACON compiler bugfix from hra1129/msx_basic_compiler#32 to make `INP(`...`)` usable. Prebuilt binaries are included to ease testing on real hardware. A small, standalone public domain Python CAS-to-WAV converter generated by Google's Gemini search assistant is also included, and was used to generate the WAV version of the cassette test suite from the CAS image. The cassette version of the test suite excludes the precompiled MSX-BACON version as it would complicate cassette loading. The X-BASIC / BASIC'n / MSXべーしっ君 `_TURBO` compiler is still recommended when loading from cassette, and for loading from disk in machines with 32KB of Z80 RAM. Machines with only 16KB of Z80 RAM are stuck with slow interpreted MSX-BASIC. 8KB of Z80 RAM isn't enough to run these tests.
f-fix added a commit to f-fix/openMSX that referenced this pull request Jul 7, 2026
… older versions to reduce confusion.

This version newly incorporates the `BACONLDR.BIN` loader+runtime library for the (MIT-licensed) [MSX-BACON](https://github.com/hra1129/msx_basic_compiler) BASIC compiler, which is used to build a precompiled version of the test suite. This precompiled version loads and runs quite a bit faster on machines with disks and sufficient RAM (64K or more). This precompiled version of the test suite is assembled using [zma](https://github.com/hra1129/zma). To rebuild the precompiled test suite requires an MSX-BACON compiler bugfix from hra1129/msx_basic_compiler#32 to make `INP(`...`)` usable. Prebuilt binaries are included to ease testing on real hardware.

A small, standalone public domain Python CAS-to-WAV converter generated by Google's Gemini search assistant is also included, and was used to generate the WAV version of the cassette test suite from the CAS image.

The cassette version of the test suite excludes the precompiled MSX-BACON version as it would complicate cassette loading.

The X-BASIC / BASIC'n / MSXべーしっ君 `_TURBO` compiler is still recommended when loading from cassette, and for loading from disk in machines with 32KB of Z80 RAM. Machines with only 16KB of Z80 RAM are stuck with slow interpreted MSX-BASIC. 8KB of Z80 RAM isn't enough to run these tests.

This is related to openMSX#2138
MBilderbeek pushed a commit to openMSX/openMSX that referenced this pull request Jul 9, 2026
… older versions to reduce confusion.

This version newly incorporates the `BACONLDR.BIN` loader+runtime library for the (MIT-licensed) [MSX-BACON](https://github.com/hra1129/msx_basic_compiler) BASIC compiler, which is used to build a precompiled version of the test suite. This precompiled version loads and runs quite a bit faster on machines with disks and sufficient RAM (64K or more). This precompiled version of the test suite is assembled using [zma](https://github.com/hra1129/zma). To rebuild the precompiled test suite requires an MSX-BACON compiler bugfix from hra1129/msx_basic_compiler#32 to make `INP(`...`)` usable. Prebuilt binaries are included to ease testing on real hardware.

A small, standalone public domain Python CAS-to-WAV converter generated by Google's Gemini search assistant is also included, and was used to generate the WAV version of the cassette test suite from the CAS image.

The cassette version of the test suite excludes the precompiled MSX-BACON version as it would complicate cassette loading.

The X-BASIC / BASIC'n / MSXべーしっ君 `_TURBO` compiler is still recommended when loading from cassette, and for loading from disk in machines with 32KB of Z80 RAM. Machines with only 16KB of Z80 RAM are stuck with slow interpreted MSX-BASIC. 8KB of Z80 RAM isn't enough to run these tests.

This is related to #2138
uniskie added a commit to uniskie/openMSX that referenced this pull request Jul 11, 2026
commit 5dd2873
Author: f-fix <bsittler@iname.com>
Date:   Wed Jul 8 20:51:54 2026 -0700

    Simplify rebuild and add 2400bps WAV. Also fix a typo in the .md.

commit bd8e775
Author: f-fix <bsittler@iname.com>
Date:   Tue Jul 7 12:10:19 2026 -0700

    Update the I/O port Kanji/Hangul/Hanja ROM tests to v3.1. Also remove older versions to reduce confusion.

    This version newly incorporates the `BACONLDR.BIN` loader+runtime library for the (MIT-licensed) [MSX-BACON](https://github.com/hra1129/msx_basic_compiler) BASIC compiler, which is used to build a precompiled version of the test suite. This precompiled version loads and runs quite a bit faster on machines with disks and sufficient RAM (64K or more). This precompiled version of the test suite is assembled using [zma](https://github.com/hra1129/zma). To rebuild the precompiled test suite requires an MSX-BACON compiler bugfix from hra1129/msx_basic_compiler#32 to make `INP(`...`)` usable. Prebuilt binaries are included to ease testing on real hardware.

    A small, standalone public domain Python CAS-to-WAV converter generated by Google's Gemini search assistant is also included, and was used to generate the WAV version of the cassette test suite from the CAS image.

    The cassette version of the test suite excludes the precompiled MSX-BACON version as it would complicate cassette loading.

    The X-BASIC / BASIC'n / MSXべーしっ君 `_TURBO` compiler is still recommended when loading from cassette, and for loading from disk in machines with 32KB of Z80 RAM. Machines with only 16KB of Z80 RAM are stuck with slow interpreted MSX-BASIC. 8KB of Z80 RAM isn't enough to run these tests.

    This is related to openMSX#2138

commit 415afab
Author: Manuel Bilderbeek <Manuel.Bilderbeek@gmail.com>
Date:   Thu Jul 9 00:23:23 2026 +0200

    Remove some noisy constuctor calls...

    Tiny improvement on previous commit. More lines, but overall cleaner...

commit 8dde720
Author: Manuel Bilderbeek <Manuel.Bilderbeek@gmail.com>
Date:   Wed Jul 8 23:47:12 2026 +0200

    Add note in debugger help texts about adress from symbol.

    Due to incomplete constexpr support for std::string in the current C++ code I need to through some hoops here (thanks to Gemini) to get this constexpr. But I think I made it. If someone has a better idea on how to solve this, please change the code :)

    Fixes openMSX#2149.

commit aa76d74
Author: -ffix <164929254+f-fix@users.noreply.github.com>
Date:   Tue Jul 7 10:41:39 2026 -0700

    I/O port Kanji behavior of Sony HB-11 confirmed by hw test  (openMSX#2146)

    A Hit Bit U owner has run the test and provided me with screen photos that show this behavior.

    Co-authored-by: Benjamin C. Wiley Sittler <bsittler@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

INP(...) return type is wrong, causing Overflow

1 participant