Jump to content

Photo

TurboBasicXL problem

Fails to load under MyDOS

134 replies to this topic

#126 bob1200xl OFFLINE  

bob1200xl

    River Patroller

  • Topic Starter
  • 2,497 posts

Posted Fri Mar 2, 2012 10:22 AM

TBXL is looking for a file to run at the end of the load, so it does a directory search. It seems to do this in all versions/hardware. How many directory sectors it reads probably depends on how many files are on the disk.

Bob

#127 flashjazzcat OFFLINE  

flashjazzcat

    Quadrunner

  • 12,802 posts
  • Location:United Kingdom

Posted Fri Mar 2, 2012 11:19 AM

Doesn't TB routinely look for an autorun file to execute?

#128 Larry ONLINE  

Larry

    River Patroller

  • 3,929 posts
  • Location:U.S. -- Midwest

Posted Fri Mar 2, 2012 12:41 PM

Yes, that must be it -- looking for "AUTORUN.BAS" IIRC.

Here are the partial APE logs from both loads. I would not have noticed it on the patched version had it not read all the directory sectors. (3 files on the D1: image). On the regular MyDos, there were 2 files. To make this as apple-to-apples, I copied the XEX patch file to the regular MyDos disk. It still only checks the first directory sector.

Not complaining at all -- I'm happy to have it work.

Patched MyDos loading TBXL:
Device: 32 Command: 52 Aux 1: 87 Aux 2: 00 Checksum: 0C
Device: 32 Command: 52 Aux 1: 88 Aux 2: 00 Checksum: 0D
Device: 32 Command: 52 Aux 1: 89 Aux 2: 00 Checksum: 0E
Device: 32 Command: 52 Aux 1: 8A Aux 2: 00 Checksum: 0F
Device: 32 Command: 52 Aux 1: 8B Aux 2: 00 Checksum: 10
Device: 32 Command: 52 Aux 1: 8C Aux 2: 00 Checksum: 11
Device: 32 Command: 52 Aux 1: 8D Aux 2: 00 Checksum: 12
Device: 32 Command: 52 Aux 1: 8E Aux 2: 00 Checksum: 13
Device: 32 Command: 52 Aux 1: 8F Aux 2: 00 Checksum: 14
Device: 32 Command: 52 Aux 1: 90 Aux 2: 00 Checksum: 15
Device: 32 Command: 52 Aux 1: 91 Aux 2: 00 Checksum: 16
Device: 32 Command: 52 Aux 1: 92 Aux 2: 00 Checksum: 17
Device: 32 Command: 52 Aux 1: 93 Aux 2: 00 Checksum: 18
Device: 32 Command: 52 Aux 1: 94 Aux 2: 00 Checksum: 19
Device: 31 Command: 52 Aux 1: 01 Aux 2: 00 Checksum: 84
Device: 31 Command: 53 Aux 1: 01 Aux 2: 00 Checksum: 85
Device: 31 Command: 52 Aux 1: 69 Aux 2: 01 Checksum: ED
Device: 31 Command: 52 Aux 1: 6A Aux 2: 01 Checksum: EE
Device: 31 Command: 52 Aux 1: 6B Aux 2: 01 Checksum: EF
Device: 31 Command: 52 Aux 1: 6C Aux 2: 01 Checksum: F0
Device: 31 Command: 52 Aux 1: 6D Aux 2: 01 Checksum: F1
Device: 31 Command: 52 Aux 1: 6E Aux 2: 01 Checksum: F2
Device: 31 Command: 52 Aux 1: 6F Aux 2: 01 Checksum: F3
Device: 31 Command: 52 Aux 1: 70 Aux 2: 01 Checksum: F4

Regular MyDos loading TBXL:
Device: 32 Command: 52 Aux 1: 8F Aux 2: 00 Checksum: 14
Device: 32 Command: 52 Aux 1: 90 Aux 2: 00 Checksum: 15
Device: 32 Command: 52 Aux 1: 91 Aux 2: 00 Checksum: 16
Device: 32 Command: 52 Aux 1: 92 Aux 2: 00 Checksum: 17
Device: 32 Command: 52 Aux 1: 93 Aux 2: 00 Checksum: 18
Device: 32 Command: 52 Aux 1: 94 Aux 2: 00 Checksum: 19
Device: 31 Command: 52 Aux 1: 01 Aux 2: 00 Checksum: 84
Device: 31 Command: 53 Aux 1: 01 Aux 2: 00 Checksum: 85
Device: 31 Command: 52 Aux 1: 69 Aux 2: 01 Checksum: ED

-Larry

#129 flashjazzcat OFFLINE  

flashjazzcat

    Quadrunner

  • 12,802 posts
  • Location:United Kingdom

Posted Fri Mar 2, 2012 2:31 PM

Not sure what's going on there. Does it still run AUTORUN.BAS regardless of its position in the directory? Also - are those logs reversed (since the implication was that the patched version is causing fewer sector reads)?

The only possible variable I can see here is that the content of the IOCB block takes whatever was in the ZIOCB during the call to INIT in the patched version, while in the original both the ZIOCB and the IOCB will have identical contents.

#130 bob1200xl OFFLINE  

bob1200xl

    River Patroller

  • Topic Starter
  • 2,497 posts

Posted Fri Mar 2, 2012 2:45 PM

Does my '816 version fix do this?

(not on my hardware... it just reads the first directory sector, like your second example)

Bob

#131 flashjazzcat OFFLINE  

flashjazzcat

    Quadrunner

  • 12,802 posts
  • Location:United Kingdom

Posted Fri Mar 2, 2012 2:47 PM

By the time TB has control, it's trying to open a file using a standard CIO call. Surely there are more external variations causing these different sector reads???

#132 CharlieChaplin ONLINE  

CharlieChaplin

    River Patroller

  • 2,585 posts

Posted Fri Mar 2, 2012 2:52 PM

@Jon:

Afaik, the latest version of MyDOS (MyDOS 4.55 beta 4) still has this bug - can you change your patcher program so that it works with this version 4.55 too...?!?

-Andreas Koch.

Attached Files

  • Attached File  Mdb4.zip   9.7KB   110 downloads


#133 Larry ONLINE  

Larry

    River Patroller

  • 3,929 posts
  • Location:U.S. -- Midwest

Posted Fri Mar 2, 2012 2:54 PM

No, not on mine -- neither 1200XL or WIDE.

It's just fine -- just my curiosity.

-Larry

Does my '816 version fix do this?

(not on my hardware... it just reads the first directory sector, like your second example)

Bob



#134 rdea6 OFFLINE  

rdea6

    River Patroller

  • 2,584 posts
  • Location:Arizona USA

Posted Fri Mar 2, 2012 3:10 PM

I hate the 4 digit sector size of MyDos 4.50. So I would like to see a patcher for latest MyDOS 4.55 also.

#135 flashjazzcat OFFLINE  

flashjazzcat

    Quadrunner

  • 12,802 posts
  • Location:United Kingdom

Posted Fri Mar 2, 2012 3:40 PM

Here you go:

Attached File  Mdb4_wide_patch.atr   90.02KB   74 downloads

That's pre-patched. The patcher will detect version 4.50 and 4.55 beta 4, and also whether they're already patched.

Attached File  md45wide.xex   652bytes   64 downloads

Any problems - let me know. :)

NOTE: I tried creating a patched MyDOS disk with lots of files in it, with AUTORUN.BAS further down the list. TB picked it up and ran it every time.

Edited by flashjazzcat, Fri Mar 2, 2012 3:43 PM.





0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users