'Direct Statement in file' Error on MSX 2

Page 1/2
| 2

By anonymous

incognito ergo sum (116)

anonymous's picture

10-06-2002, 20:39

I've downloaded 'Chuckie Egg' for an MSX.

On the disk 'Diskmanager' created is a file named 'Chuckie.bin' loacated

is i look on the source in Chuckie.bas there is a single line

10 Bload "Chuckie.bin",R

When running this code, i'll get the 'Direct Statement in file' error.

Can someone help me?

Reinald Nijboer (The Netherlands)I've downloaded 'Chuckie Egg' for an MSX.

On the disk 'Diskmanager' created is a file named 'Chuckie.bin' loacated

is i look on the source in Chuckie.bas there is a single line

10 Bload "Chuckie.bin",R

When running this code, i'll get the 'Direct Statement in file' error.

Can someone help me?

Reinald Nijboer (The Netherlands)

Login or register to post comments

By Latok

msx guru (3836)

Latok's picture

16-06-2002, 17:41

Strange, should work fine...

Try to bload the bin file directly from your basic prompt, so not booting the BAS file.....

It shouldn't be of any difference, but hey, give it a try...

By Latok

msx guru (3836)

Latok's picture

24-08-2004, 20:49

How wonderful it is we now know diskmanager doesn't set the archive bit in files, which leads to Direct Statements in Files....This is my life progression in 2 years Tongue

By IC

Hero (557)

IC's picture

25-08-2004, 12:21

o.O

a direct statment in file is usually a BASIC program withouth a basic line in it (like: 10 print "hello world" but without the 10).
Never seen this behaviour with binary file though

By anonymous

incognito ergo sum (116)

anonymous's picture

25-08-2004, 13:16

IC, read what Latok said Smile
The cause is a major bug in Diskmanager.

By IC

Hero (557)

IC's picture

25-08-2004, 14:01

I read the thing, but I thought I had to post that remark cauz I never used Diskmanager, and I haven't seen such behaviour before...

JP 25-08-2004 12:21
Wink

By legacy

Hero (570)

legacy's picture

25-08-2004, 14:04

Now my question.
How can we repair this?

By IC

Hero (557)

IC's picture

25-08-2004, 14:10

use a diskedit tool like diskview orso?
and set the archive bit..

at least that is what I would do

By legacy

Hero (570)

legacy's picture

25-08-2004, 15:03

I suppose it's the Xst bit in the fileheader, I like to know X.

By anonymous

incognito ergo sum (116)

anonymous's picture

25-08-2004, 20:21

Is it a msx-1 game? Maybe it has to do with the control of the memory in MSX-2. I guess there is a solution for this, like poke-1,170:clear200

or poke&hffff,&haa:clear100

and then run the file once again, maybe it works.

By anonymous

incognito ergo sum (116)

anonymous's picture

25-08-2004, 20:24

By the way, this poke is also fun, if you boot your msx2 normal and want to go to msxdos in basic.
In the normal case you get a error if you type: call system, but after this poke not:

poke&hf346,1

_system

Have fun Wink

Page 1/2
| 2