Jump to content

Photo

K-DOS cart (help)


25 replies to this topic

#1 Savetz OFFLINE  

Savetz

    Dragonstomper

  • 784 posts
  • Location:Portland OR

Posted Thu May 5, 2016 7:11 PM

I am borrowing a K-Byte K-DOS cart. This DOS wasn't released on cart AFAIK.  (I borrowed it from a guy who worked at K-Byte.) It doesn't boot on my 800XL, and the dumped version doesn't boot in my emulator. 

 

Who wants to be a hero and figure out if this cart works? I'm out of my element here.

 

I'm assuming standard 8K left cart. But could be wrong.

 

Attached File  kdos.bin   8KB   70 downloads

 

—Kevin

kdos.jpg


Edited by Savetz, Thu May 5, 2016 7:12 PM.


#2 Savetz OFFLINE  

Savetz

    Dragonstomper

  • Topic Starter
  • 784 posts
  • Location:Portland OR

Posted Thu May 5, 2016 7:21 PM

I dumped it twice more. Once as a left cart and once as in case it's a right cart. Neither works. Both are different from the first dump I did. I don't understand why.

Attached File  kdosleft.bin   8KB   73 downloads

Attached File  kdosright.bin   8KB   72 downloads



#3 Bryan OFFLINE  

Bryan

    Quadrunner

  • 10,409 posts
  • Cruise Elroy = 4DB7
  • Location:Chesaning, MI

Posted Thu May 5, 2016 7:38 PM

The data is so different between the dumps that it looks like there's some bank-switching going on. The 2nd set of dumps actually looks like a DOS, but the first one is just repeating byte patterns. If you dump it a few more times we might end up with all the pieces. :) Can the cart be opened?



#4 Savetz OFFLINE  

Savetz

    Dragonstomper

  • Topic Starter
  • 784 posts
  • Location:Portland OR

Posted Thu May 5, 2016 7:42 PM

I am unable to dump it again, at least not today (the battery in Paul's windows laptop died.)

 

I doubt it's bank-switched. I think it's a very early cart, before bank-switching was a thing.



#5 Bryan OFFLINE  

Bryan

    Quadrunner

  • 10,409 posts
  • Cruise Elroy = 4DB7
  • Location:Chesaning, MI

Posted Thu May 5, 2016 8:22 PM

Well, here's what's strange:

 

kdos.bin contains nothing that looks useful, but it ends with $B524 over and over like it's some kind of vector.

 

kdosleft.bin looks like code and has ASCII text related to DOS. Ends with the vector $B1E3.

kdosright.bin look as though it contains data for making some disk images.

 

It looks like there might be more than 16K worth of stuff here, or the first file is just garbage.



#6 Bryan OFFLINE  

Bryan

    Quadrunner

  • 10,409 posts
  • Cruise Elroy = 4DB7
  • Location:Chesaning, MI

Posted Thu May 5, 2016 8:38 PM

B1C0   A2 00      LDX #$00
B1C2   BD 00 80   LDA $8000,X
B1C5   9D 00 00   STA $0000,X
B1C8   E8         INX
B1C9   D0 F7      BNE $B1C2
B1CB   EE 04 40   INC $4004
B1CE   EE 07 40   INC $4007
B1D1   AD 07 40   LDA $4007
B1D4   C9 32      CMP #$32
B1D6   D0 EA      BNE $B1C2
B1D8   A9 00      LDA #$00
B1DA   8D 00 D5   STA $D500
B1DD   4C 74 E4   JMP $E474
B1E0   A2 7F      LDX #$7F
B1E2   BD C3 B1   LDA $B1C3,X
B1E5   9D 00 40   STA $4000,X
B1E8   CA         DEX
B1E9   10 F7      BPL $B1E2
B1EB   60         RTS

Here's the routine for copying itself into RAM. (kdosleft)

 

Looks like it jumps to the warmstart routine, so it probably requires the 800 OS to work. Also, it writes to $D500 (CCTL), so the cartridge has some special function. It either bank switches, or disables itself to free up RAM. I don't see any other references to $D500 except this one. If I had to guess, I'd say this cart provided a quick and dirty way of instantly getting into a DOS environment, possibly with a utility disk image already in memory.

 

I stitched the two halves of the image together and it ran this code and then reset in an endless loop in Altirra in 800 mode.



#7 Rybags OFFLINE  

Rybags

    Quadrunner

  • 14,896 posts
  • Location:Australia

Posted Thu May 5, 2016 9:07 PM

The banking scheme would need to be worked out.  If you can open the cart possibly photos of each side could be used to deduce it if it's using a standard logic IC.

If it's just using a pair of standard Eproms maybe it could be copied by just swapping them into a nonbanked 16K cart board.

 

Strange how that code starts writing from location 0 though - if that's the case, bad programming practice and limits it to a specific OS.

Though it could probably be altered fairly easily to work on other machines.



#8 Bryan OFFLINE  

Bryan

    Quadrunner

  • 10,409 posts
  • Cruise Elroy = 4DB7
  • Location:Chesaning, MI

Posted Thu May 5, 2016 9:12 PM

Yeah, it looks like it's just a brute force way to put the computer in a 'saved state.' It might be possible to make a bootable DOS from it, though.



#9 Rybags OFFLINE  

Rybags

    Quadrunner

  • 14,896 posts
  • Location:Australia

Posted Thu May 5, 2016 9:53 PM

My suspicion is that it's probably just something that's already out there.  Comparing mightn't be straightforward, likely there's embedded work areas and buffers that would change during use.



#10 AtariGeezer OFFLINE  

AtariGeezer

    River Patroller

  • 2,421 posts
  • Location:Santee, CA

Posted Fri May 6, 2016 2:41 AM

Looking at the left and right dumps you will see that at offset $0700 of kdosright.bin is the first sector (Boot) of K-DOS.atr...

kdosleft.biin is the continuation.  What you end up with is 81 sectors of DOS.SYS, but the rest is unknown...



#11 Bryan OFFLINE  

Bryan

    Quadrunner

  • 10,409 posts
  • Cruise Elroy = 4DB7
  • Location:Chesaning, MI

Posted Fri May 6, 2016 1:51 PM

I'm in...

 

I halted the system during boot, loaded the image into RAM at $8000 like a cartridge, then allowed it to relocate into RAM (at $4000 for copy loop, and $0000 for the image), then jumped to WARMST.

Attached Thumbnails

  • kdos.jpg

Attached Files



#12 AtariGeezer OFFLINE  

AtariGeezer

    River Patroller

  • 2,421 posts
  • Location:Santee, CA

Posted Fri May 6, 2016 6:09 PM

Here's the K-DOS Cart ROM for those who haven't combined the two images yet.

Attached File  K-DOS Cart.rom   16KB   127 downloads



#13 Savetz OFFLINE  

Savetz

    Dragonstomper

  • Topic Starter
  • 784 posts
  • Location:Portland OR

Posted Fri May 6, 2016 6:24 PM

So is that it

 

Here's the K-DOS Cart ROM for those who haven't combined the two images yet.

attachicon.gifK-DOS Cart.rom

 

So — is that it? We got it all?

 

Also: is there a modern guide to options for cart dumping? I am willing to buy a thing, but I am not willing to use Windows. I have Macs and Ataris. Paul Westphal told me that he Lotherek SIO2PC can be used to dump carts (but I can't find info on that.) and I have that new SpartaDOS X remake, with that tempting slot for a stacked cart on it. . . I wonder if that can be used for dumping carts.

 

thanks

-Kevin


  • slx likes this

#14 Bryan OFFLINE  

Bryan

    Quadrunner

  • 10,409 posts
  • Cruise Elroy = 4DB7
  • Location:Chesaning, MI

Posted Fri May 6, 2016 6:34 PM

Yep, it appears to be a quick way to get to K-DOS without needing to boot it from floppy. Probably a pretty handy thing when you're coding, testing, and crashing the machine hundreds of times a day.



#15 Savetz OFFLINE  

Savetz

    Dragonstomper

  • Topic Starter
  • 784 posts
  • Location:Portland OR

Posted Fri May 6, 2016 6:36 PM

Yep, it appears to be a quick way to get to K-DOS without needing to boot it from floppy. Probably a pretty handy thing when you're coding, testing, and crashing the machine hundreds of times a day.

 

 

Hm, how do I get it to work? I haven't found the combination of settings to make it work under Atari800MacX.

 

Also: thank you!

 

Kevin


Edited by Savetz, Fri May 6, 2016 6:37 PM.


#16 sup8pdct OFFLINE  

sup8pdct

    Dragonstomper

  • 828 posts
  • Location:australia

Posted Fri May 6, 2016 6:42 PM

This rom cart image won't work in emulator as it get stuck in an endless copy/warm start loop due to cart not being able to be turned off. ie no such cart profile in emulators.

I have made an .XEX file that does work in emulator (atari800win). OS rev A or B required. Is same as disk based version.

 

Attached File  kdos whole.xex   16.01KB   72 downloads

 

James


Edited by sup8pdct, Fri May 6, 2016 6:45 PM.


#17 Savetz OFFLINE  

Savetz

    Dragonstomper

  • Topic Starter
  • 784 posts
  • Location:Portland OR

Posted Fri May 6, 2016 6:44 PM

Great. OK, if we're convinced we got it all, I will send the cart back to its owner. yayyy nerds.



#18 Bryan OFFLINE  

Bryan

    Quadrunner

  • 10,409 posts
  • Cruise Elroy = 4DB7
  • Location:Chesaning, MI

Posted Fri May 6, 2016 6:44 PM

The problem is that there's additional hardware in the cartridge- probably to disable it and free up RAM from $8000-BFFF. So, the system crashes if you just load it as a standard cart. It may be possible to format it as an OSS cart or something else that can disable itself.

 

EDIT: Looks like James has got it covered. :)

 

Has anyone checked whether it matches known versions of K-DOS?



#19 AtariGeezer OFFLINE  

AtariGeezer

    River Patroller

  • 2,421 posts
  • Location:Santee, CA

Posted Fri May 6, 2016 6:51 PM

I just loaded it in Altirra using the Blizzard 16k mode along with your kdos.state and it booted okay. But it would be nice to see the innards if possible :)



#20 sup8pdct OFFLINE  

sup8pdct

    Dragonstomper

  • 828 posts
  • Location:australia

Posted Fri May 6, 2016 6:54 PM

The problem is that there's additional hardware in the cartridge- probably to disable it and free up RAM from $8000-BFFF. So, the system crashes if you just load it as a standard cart. It may be possible to format it as an OSS cart or something else that can disable itself.

 

EDIT: Looks like James has got it covered. :)

 

Has anyone checked whether it matches known versions of K-DOS?

It is the same as disk version. The cart needs to be tested to see if can be turned back on again. Else power cycle is required.

 

James



#21 Savetz OFFLINE  

Savetz

    Dragonstomper

  • Topic Starter
  • 784 posts
  • Location:Portland OR

Posted Fri May 6, 2016 7:00 PM

IMG_4341.JPG

IMG_4342.JPG

 



#22 Bryan OFFLINE  

Bryan

    Quadrunner

  • 10,409 posts
  • Cruise Elroy = 4DB7
  • Location:Chesaning, MI

Posted Fri May 6, 2016 7:02 PM

There's another chip tucked away on the back. :) I'm guessing any access to D5xx will disable it.



#23 Savetz OFFLINE  

Savetz

    Dragonstomper

  • Topic Starter
  • 784 posts
  • Location:Portland OR

Posted Fri May 6, 2016 7:06 PM

IMG_4343.JPG IMG_4344.JPG IMG_4345.JPG IMG_4346.JPG IMG_4347.JPG IMG_4348.JPG IMG_4349.JPG



#24 Fletch OFFLINE  

Fletch

    Stargunner

  • 1,002 posts
  • Location:Pennsylvania

Posted Fri May 6, 2016 7:09 PM

The cart dump works in Atari800MacX if you choose the Blizzard 16K setting



#25 scotty OFFLINE  

scotty

    Moonsweeper

  • 307 posts
  • I have, but have **YOU** played Atari today?
  • Location:North Olmsted, Ohio

Posted Wed Aug 10, 2016 11:51 AM

Here is the disk version of K-Dos from 1981.  Also includes all the files mentioned on page 2 of the K-Dos user manual.  Archive contains both ATA and ATX version of the disks.

Attached Files


Edited by scotty, Wed Aug 10, 2016 11:51 AM.





0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users