Pseudo disk driver for PIStorm
Posted: 26 Jan 2023 11:51
Hi All - If you are not aware, there is development ongoing to get the AMIGA PIStorm working on ATARI ST's. Significant progress has been made. We are at the stage where we can reliably boot and run some (not all) programmes. Memory performance is slow at the moment and there are niggely issues with interrupts. Drop in to Discord to take a look - https://discord.com/channels/7844284613 ... 8668062742
Okay, so that aside, I am trying to write a driver to interface the ATARI to the PIStorm memory. I am at the point where I can load a disk image in to mapped memory on the PI side. I can read/write from/to that memory on the ATARI side.
Now the problem I have is not knowing how to implement a driver. Is it cookie based? I can create a cookie, but then how does the cookie point to the driver? How is the driver loaded in the first place? Is it simply put in the AUTO folder? How are disk drive calls redirected to the new driver? Is it simply pointing system variables (hdv_bpb, hdv_rw, hdv_boot, hdv_mediach) to the driver?
Ideally I would like answers for C as I don't want to have to learn 68K assembler if I can help it :)
Any help is appreciated
Cheers
Okay, so that aside, I am trying to write a driver to interface the ATARI to the PIStorm memory. I am at the point where I can load a disk image in to mapped memory on the PI side. I can read/write from/to that memory on the ATARI side.
Now the problem I have is not knowing how to implement a driver. Is it cookie based? I can create a cookie, but then how does the cookie point to the driver? How is the driver loaded in the first place? Is it simply put in the AUTO folder? How are disk drive calls redirected to the new driver? Is it simply pointing system variables (hdv_bpb, hdv_rw, hdv_boot, hdv_mediach) to the driver?
Ideally I would like answers for C as I don't want to have to learn 68K assembler if I can help it :)
Any help is appreciated
Cheers