|
Atari coding BBS
Re: Multiple Drive Check |
Posted by: Bod/STAX
|
Oct,27.2012-20:20
|
Seems there's a bit more to this than I first thought.
The way things work at the moment is that the game is set up as a one file link file .PRG (aroung 400k). This boots from the auto folder which loads and depacks the first 5kb or so which is my loader that then handles all the opening, seeking and loading of the rest of the .PRG
First thing I do when opening the .PRG to load a section is do the folowing:
clr.w -(sp)
move.l fname(pc),-(sp)
move.w #$3d,-(sp)
trap #1
addq.w #8,sp
cmp.l #-33,d0
beq file_not_found
tst.l d0
bmi file_error
; rest of file-loader code...
With this I thought that if the file isn't found just change drive letter and repeat until file is found and then load it, if file isn't found request that a particular disk is inserted in any drive and then the process is repeated.
Of course like you stated ggn that if any other -minor- error is detected then it's just going to branch to the file error code (which ATM sets the palette to red, turns off interrupts & dma sound and goes into and endless loop) which would be a right bastard if you've got half way through the game and you hit a disk error.
A DMA Trackloader is an obvious solution to me and I have absolutely no problem with this as I think DMA loaders are easier to work with than GEMDOS.
I was thinking that this is an easier way of doing things for harddrive installation.
As I said I'm thinking ahead of myself here so maybe I'll have a bit of a re-think on this.
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
Multiple Drive Check
|
Bod/STAX
|
Oct,26.2012-20:54
|
Re: Multiple Drive Check
|
AdamK
|
Oct,26.2012-21:43
|
Re: Multiple Drive Check
|
defjam
|
Oct,27.2012-08:09
|
Re: Multiple Drive Check
|
Bod/STAX
|
Oct,27.2012-11:03
|
Re: Multiple Drive Check
|
Simon Sunnyboy / Paradize
|
Oct,27.2012-12:06
|
Re: Multiple Drive Check
|
Bod/STAX
|
Oct,27.2012-14:24
|
Re: Multiple Drive Check
|
ggn
|
Oct,27.2012-18:11
|
Re: Multiple Drive Check
|
Bod/STAX
|
Oct,27.2012-20:20
|
Re: Multiple Drive Check
|
ggn
|
Oct,27.2012-21:46
|
Re: Multiple Drive Check
|
evil
|
Oct,27.2012-22:18
|
Re: Multiple Drive Check
|
Bod/STAX
|
Oct,28.2012-15:36
|
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|