Jump to content
mitchpb

reading/writing floppy sectors from Basic

Recommended Posts

9 minutes ago, mitchpb said:

Is there a way to read and write floppy sectors from Basic on the TI99? If so how?

 

I do not think you can do this from TI Basic without help from an ALC (Assembly Language Code) routine you would need to write or have written.  You would then use such a routine with “CALL LINK()” from TI Basic. This would require the E/A cartridge to work.

 

...lee

  • Like 2

Share this post


Link to post
Share on other sites

Yea RXB 2015 has CALL SECTOR(pathname,read/write flag,#of sectors,sector-string)

EXAMPLE: CALL SECTOR("SCS1.",9,32,"FFFFF")

This line would read sector 1048575 putting 32 sectors from SCSI Hard Drive into lower 8K memory. (32*256=8192 BYTES)

 

Also RXB 2015 has CALL FCOPY that copies files from Hard Drives or Floppies in case you want a faster method.

 

I used CALL FCOPY to duplicate Floppy drives pre formatted.

I used CALL SECTOR to duplicate one SCSI Hard Drive to another of the same make and model. (Took 6 hours)

 

Edited by RXB
  • Like 2

Share this post


Link to post
Share on other sites

Rich,  what does it take to put a SCSI drive on the TI-99?

Share this post


Link to post
Share on other sites
Rich,  what does it take to put a SCSI drive on the TI-99?
A scsi controller.. in an expansion box

Sent from my LM-G820 using Tapatalk

Share this post


Link to post
Share on other sites

And does Arcadeshopper sell SCSI cards for the PEB? :)

And are SCSI drives still available?

Share this post


Link to post
Share on other sites
1 hour ago, TheBF said:

And are SCSI drives still available?

The only narrow SCSI drives you will find are way old.  As the shift has been to SAS (serial attached SCSI,) if SCSI drives are still in production they are likely Ultra320 drives.  There are modern replacements, like the SCSI2SD which I have in my PEB and a couple of other old machines, but also SCSI-to-IDE, SCSI-to-SATA, and SCSI-to-CF adapters, and such.

 

FWIW, ACard, the original manufacturer of SCSI converters, has been defunct for a little over a year.  In its absence there has not been a reasonable replacement for 68-pin SCSI to SATA, but there are plenty of narrow SCSI-to-IDE/SATA adapters available cheaply.  ACard worked to ensure its products were fast and stable, whereas YMMV with these off-shoots.

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites
And does Arcadeshopper sell SCSI cards for the PEB? atariage_icon_smile.gif&key=b4329950063166e22b9ef8799701fd7588b56a9f3e0590e7a9d9c88518ca48fc

And are SCSI drives still available?

Did you look at the FAQ?

Did you look at my store?

 

I have never carried scsi controllers. The info on cards made for the peb is in the FAQ. If something is missing lmk

 

Also SCSI drives are probably only used or scsi2sd these days

 

Sent from my LM-G820 using Tapatalk

 

 

 

  • Like 1

Share this post


Link to post
Share on other sites
22 hours ago, TheBF said:

Rich,  what does it take to put a SCSI drive on the TI-99?

A SCSI card from Western Horizon.

  • Like 1

Share this post


Link to post
Share on other sites

Or an ASCSI card from SNUG, as I have. May be extremely hard to find, though. (No, you can't have mine, forget it.)

  • Like 5

Share this post


Link to post
Share on other sites

Thirding that notion (in general terms.)  I have my WHT and even though SCS0 does not work, I will be holding onto it.  So, back off!  On guard!  Have at you!  :D

  • Like 1
  • Haha 1

Share this post


Link to post
Share on other sites

I got nuthin', so you can't have my SCSI card either.

  • Like 1

Share this post


Link to post
Share on other sites

Yea I have to admit SCSI cards are just as good or better then RAMDISK, just slightly slower but unlimited space with 7 drives 40 meg each.

  • Like 1

Share this post


Link to post
Share on other sites

I've got some SCSI drives for some of my old Macs....sound like a 737 hovering over my house.

 

I much prefer SSD.  🙂

Share this post


Link to post
Share on other sites
46 minutes ago, cbmeeks said:

I've got some SCSI drives for some of my old Macs....sound like a 737 hovering over my house.

 

I much prefer SSD.  🙂

I have a PC box 8 feet away with own fan so my SCSI drives are pretty silent.

Share this post


Link to post
Share on other sites

This is the really cool thing with SCSI2SD: Quiet, works, and I can plug it in the card reader of my PC. I never had a faster way to create backups. Should it fail one day, I'll push a backup on a new SD card.

  • Like 2

Share this post


Link to post
Share on other sites
2 hours ago, mizapf said:

This is the really cool thing with SCSI2SD: Quiet, works, and I can plug it in the card reader of my PC. I never had a faster way to create backups. Should it fail one day, I'll push a backup on a new SD card.

I am doing something very similar, except with the Myarc HFDC and the DREM.

 

Nice thing with the DREM is that on a separate monitor and keyboard that can (optional) plug into it, I can watch sector access as it accesses each sector for read and write operations.

 

Beery

  • Like 1

Share this post


Link to post
Share on other sites

OPEN #1:N$,UPDATE,RELATIVE,INTERNAL,FIXED 255
with an FDR as set up above, essentially allows Basic to read and write disk sectors!

 

From Mike Wrights excellent article called Cracking Doom of Modular.

 

d.

  • Like 1

Share this post


Link to post
Share on other sites
3 hours ago, dhe said:

OPEN #1:N$,UPDATE,RELATIVE,INTERNAL,FIXED 255
with an FDR as set up above, essentially allows Basic to read and write disk sectors!

I wonder if there is more to it than that?

 

The issues I see there:

- what do you put into N$?

- how do you get around the need to match the file type?

- FIXED 255 gives you only 255 bytes, sectors are 256 bytes long

 

  • Like 1

Share this post


Link to post
Share on other sites

Yea that is why RXB reads and writes sectors to Lower 8K RAM as XB can not 256 byte strings.

Bonus is you can read or write  32 Sectors in one command in RXB. 

Example: CALL SECTOR("SCS1.",9,32,"FFFFF", "SCS2.",0,32,"FFFFF") ! This line would read 32 sectors from SCS1 at 1048575 and write it to SCS2.

Share this post


Link to post
Share on other sites
18 hours ago, Tursi said:

I wonder if there is more to it than that?

 

The issues I see there:

- what do you put into N$?

- how do you get around the need to match the file type?

- FIXED 255 gives you only 255 bytes, sectors are 256 bytes long

Yes, there was much more, the article was published in Micropendium, or is on the Cyc. But that was one line of defense in the copy protection, essentially Mike had to figure out what that line of code was doing. And essentially it matched with the question was in this thread, if not a perfect answer. It's as close to being done as can get in raw basic.

 

d.

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...