Jump to content

Photo

How to implent PBI routines back in an OS


8 replies to this topic

#1 ProWizard OFFLINE  

ProWizard

    River Patroller

  • 3,320 posts
  • MyIDE 2 Conversions in Progress!
  • Location:$d500-$d57f

Posted Fri Feb 17, 2012 1:02 PM

Hi.

As some know I am 'tweaking' MyIDE OS 3.1 ... although this versions lacks a lot of nice features the new Firmwares have, I think MyIDE OS 3.1 was the release that came as close as possible to a standard ATARI XL/XE OS. It is an extremely compatible OS, and I like it.

I'm in the final stage of fixing existing bugs, and I think it is really a nice 'plan B' myIDE OS to use.

But now the question:

Mr. Atari (the original author of this OS) left out (or at least: disabled) the PBI routines. I want to re-enable them, but I don't know how.

When I compare the MyIDE OS 3.1 with the original Atari Xl/XE OS I conclude that PBI routines are still there, so my guess is that they are just disabled.

Anyone a clue which steps to make to get PBI working again?

#2 Rybags OFFLINE  

Rybags

    Quadrunner

  • 12,857 posts
  • Location:Australia

Posted Fri Feb 17, 2012 8:27 PM

Look for references to $247, $248 and $D1FF in the original and see if they exist in the modified OS.

Boot a disk image in Altirra and trap read to $E459 in each OS. Then trace through and see if they do the same thing.
You'd not need to trace the entire IO operation, the PBI check happens fairly early in a SIO call.

You can also set up an emulated IDE Plus 2 in Altirra which is a PBI compliant device.

My guess is the easiest way to disable PBI is probably somewhere in the OS Cold/Warmstart code.
There's also PBI relevant code in the resident IRQ handler, so maybe check for differences there too.

#3 Shawn Jefferson OFFLINE  

Shawn Jefferson

    Stargunner

  • 1,746 posts
  • Location:Victoria, Canada

Posted Sat Feb 18, 2012 3:47 PM

I think you'll find that Mr.Atari overwrote large portions of the PBI routines...

#4 ProWizard OFFLINE  

ProWizard

    River Patroller

  • Topic Starter
  • 3,320 posts
  • MyIDE 2 Conversions in Progress!
  • Location:$d500-$d57f

Posted Sun Feb 19, 2012 5:12 AM

@shawn

No he did not in MyIDE 3.1

I'm 100% sure about that. I remember the time I was trying to let MyIDE 3.1 work together with the Mux. He send me (back then) MyIDE 3.1 OS back with the PBI routines back installed. Unfortunately I can not find that ROM anywhere anymore.

I wished I had dropbox years ago. Now I never lose anything...

#5 flashjazzcat OFFLINE  

flashjazzcat

    Quadrunner

  • 8,539 posts
  • Location:United Kingdom

Posted Sun Feb 19, 2012 11:30 AM

Sijmen told me the other day that the latest MyIDE OS versions have the PBI routines fully reinstated. I'd found PENTV (IIRC) to be missing in earlier versions, which broke a lot of software.

#6 phaeron OFFLINE  

phaeron

    Stargunner

  • 1,214 posts
  • Location:USA

Posted Sun Feb 19, 2012 1:25 PM

PENTV looks intact in 3.1. The PBI initialization scan is also still there, which really should have been disabled for the internal version as it writes commands to the IDE device. The critical part missing for PBI block devices, though, is the hook at the beginning of the SIO routine to poll the PBI ROMs to see if any one them want to handle the request.

#7 Shawn Jefferson OFFLINE  

Shawn Jefferson

    Stargunner

  • 1,746 posts
  • Location:Victoria, Canada

Posted Sun Feb 19, 2012 1:32 PM

It's been a long time since I've looked at 3.1... but that's the version I originally disassembled to write my own utilities for. Looking into the source of those old versions, there are MyIDE routines at C812 and C85C... overwriting something in the XL OS there.

#8 sup8pdct OFFLINE  

sup8pdct

    Dragonstomper

  • 615 posts
  • Location:australia

Posted Sun Feb 19, 2012 2:18 PM

You will need to check the sio routine to see if pbi devices are looked for.
Also check IRQ service routine to see if $D1FF is also looked at etc.

James

#9 ProWizard OFFLINE  

ProWizard

    River Patroller

  • Topic Starter
  • 3,320 posts
  • MyIDE 2 Conversions in Progress!
  • Location:$d500-$d57f

Posted Tue Feb 21, 2012 2:11 AM

Thank you all for your detailed responses! This is really helpful people!

I haven't had time yet to look at this further (There was suddenly a game called MULE brought under my attention hehe).

But I wanted to let you all know that I appreciate all your help. When I have succeeded a bit more on this, I'll let you all know!




0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users