Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:30 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2: Bug in INPUT$ function ?

Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 11:16pm 16 May 2020
Copy link to clipboard 
Print this post

Hey CMM2 gurus,

Run the attached file on CMM and CMM2.

input_.bas.zip

On CMM output is:

Len    = 251
Last 3 = 49 13 10


On CMM2 output is:

Len    = 252
Last 3 = 13 10 0


I believe the CMM is correct and the CMM2 is wrong.

Hope this helps,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 06:13am 17 May 2020
Copy link to clipboard 
Print this post

I agree that there is a problem.

If you try and read past the end of a file using INPUT, there is a zero byte character appended.


Jim
VK7JH
MMedit
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025