Re: How to avoid standard diskerrors

2001-07-13 Thread Laurens Holst

Alex Wulms wrote:
> You must put a pointer on #f323, pointing to a pointer to your error routine.

Haha...
These things always make me laugh... :)


~Grauw



--
For info, see http://www.stack.nl/~wynke/MSX/listinfo.html



Re: How to avoid standard diskerrors

2001-07-12 Thread Alex Wulms

] Alex Wulms wrote:
] ] That is correct. Under Disk Basic environment you must hook in the classical
] ] way.
] 
] Oke, do you know which adres must be hooked?
Yes.

You must put a pointer on #f323, pointing to a pointer to your error routine.

Example:
init_error_handler:
  ld hl, errptr
  ld (#f323), hl
  ret

errptr:
  dw error_handler

error_handler:
   process the error and return appropriate return code




-- 
Visit The MSX Plaza (http://www.inter.nl.net/users/A.P.Wulms) for info on
XelaSoft, Merlasoft, Quadrivium, SD-Snatcher on fMSX, the MSX Hardware list,
XSA Disk images, documentation, Japanese MSX news from Ikeda and lots more.


--
For info, see http://www.stack.nl/~wynke/MSX/listinfo.html



Re: How to avoid standard diskerrors

2001-07-11 Thread m . de . vries

Alex Wulms wrote:
] That is correct. Under Disk Basic environment you must hook in the classical
] way.

Oke, do you know which adres must be hooked?

Gtx,
Michiel


--
For info, see http://www.stack.nl/~wynke/MSX/listinfo.html



Re: How to avoid standard diskerrors

2001-07-10 Thread Alex Wulms

] Hey,
] 
] I have a problem using disk function 064h. With this function, you can
] define your own disk error handler routine. When I call this function
] with my own disk error handler routine adres and an error occurs
] like the disk is missing in the diskdrive, I still get the normal
] error messages like 'Disk offline' in stead of my own messages.
] Is someone familiar with this routine. Maybe function 064h can only
] be used in the DOS environment and not in the Disk Basic environment.
That is correct. Under Disk Basic environment you must hook in the classical 
way.

Kind regards,
Alex Wulms



-- 
Visit The MSX Plaza (http://www.inter.nl.net/users/A.P.Wulms) for info on
XelaSoft, Merlasoft, Quadrivium, SD-Snatcher on fMSX, the MSX Hardware list,
XSA Disk images, documentation, Japanese MSX news from Ikeda and lots more.


--
For info, see http://www.stack.nl/~wynke/MSX/listinfo.html



Re: How to avoid standard diskerrors

2001-07-10 Thread Nestor soriano

> I have a problem using disk function 064h. With this function, you can
> define your own disk error handler routine. When I call this function
> with my own disk error handler routine adres and an error occurs
> like the disk is missing in the diskdrive, I still get the normal
> error messages like 'Disk offline' in stead of my own messages.

The system error message will be shown if you return from your routine
with A=0, but then you should obtain this message together with your
message, and not instead of your message. Anyway check that you do not
return with A=0, but with 1 (abort), 2 (retry) or 3 (ignore). Also,
check that you define the handler routine correctly (LD DE,routine:LD
C,64h:CALL 0F37Dh)

> Is someone familiar with this routine. Maybe function 064h can only
> be used in the DOS environment and not in the Disk Basic environment.

I never tried to use it from BASIC, but in In DOS manual, in the
description of function 063h (Define abort exit routine), is is stated:

"This function is only available when called via location 0005h in the
MSX-DOS environment. It cannot be called at location 0F37Dh from the
disk BASIC environment."

but nothing is stated in description of function 064h, so we must assume
that it may be called from any environment.


*** XX BARCELONA MSX USERS MEETING: DECEMBER 8TH, 2001 ***
--
Konami Man  -  AKA Nestor Soriano (^ ^)v
   Itsumo MSX user

 [EMAIL PROTECTED]
   http://www.konamiman.com

 Kyoko Koizumi home page (under construction):
 http://www.geocities.com/tamachan1976/index.html
--

--
For info, see http://www.stack.nl/~wynke/MSX/listinfo.html



How to avoid standard diskerrors

2001-07-09 Thread m . de . vries

Hey,

I have a problem using disk function 064h. With this function, you can
define your own disk error handler routine. When I call this function
with my own disk error handler routine adres and an error occurs
like the disk is missing in the diskdrive, I still get the normal
error messages like 'Disk offline' in stead of my own messages.
Is someone familiar with this routine. Maybe function 064h can only
be used in the DOS environment and not in the Disk Basic environment.

Gtx,
Michiel


--
For info, see http://www.stack.nl/~wynke/MSX/listinfo.html