English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 29 October 2017, 20:39   #1
nandius_c
Fernando Cabrera

 
Join Date: Oct 2013
Location: Spain
Posts: 82
Exceptions dealing with files

Hi there!

I'm getting Exception 8, 26 and 27 when opening and reading files. I've tried enabling all INTENA bits... but it did not change anything. I get those exceptions both with the code provided by Photon here and with my own code (which calls LOCK and EXAMINE to get the file size first). However, the file opens and its content are loaded into memory...

Can anybody point me in the right direction about what may be causing these exceptions and how to get rid of them, please? Or maybe that's ok and I should not really worry about it .

Example of debug info generated by WinUAE when calling DOS Open():

Exception 8, PC=00F80B10
Exception 26, PC=00F0FF30
Exception 8, PC=00F80B10
Exception 8, PC=00F80B10
Exception 26, PC=00F827E2
Exception 8, PC=00F80B10
Exception 8, PC=00F80B10
Exception 8, PC=00F80B10
D0 0008AF29 D1 0008AF29 D2 000003ED D3 0000BE00
D4 00000001 D5 00000001 D6 00000000 D7 00225624
A0 00200000 A1 0022BCD8 A2 0001DF48 A3 00225624
A4 002409F8 A5 00F96460 A6 00210C0C A7 002409B4
USP 002409B4 ISP 00202280 SFC 00000000 DFC 00000000
CACR 00000001 VBR 00000000 CAAR 00000000 MSP 00000000
T=00 S=0 M=0 X=0 N=0 Z=0 V=0 C=0 IMASK=0 STP=0
0001F550 2a00 MOVE.L D0,D5
Next PC: 0001f552

Thanks in advance!
nandius_c is offline  
AdSense AdSense  
Old 29 October 2017, 21:10   #2
meynaf
son of 68k
meynaf's Avatar
 
Join Date: Nov 2007
Location: Lyon / France
Age: 44
Posts: 2,459
Seems you're mixing system stuff and non system stuff.
Do *NOT* touch the exception vectors and hardware directly if you're doing DOS calls !
meynaf is offline  
Old 29 October 2017, 21:53   #3
nandius_c
Fernando Cabrera

 
Join Date: Oct 2013
Location: Spain
Posts: 82
I'm not changing any exception vector in this test. You can see the results in the log.txt file, with exceptions 8, 25 and 26. In the future I'd like to use a trackloader but that's too much for me at the moment... That's why I'm interested in using system calls for opening, reading and closing files.
Attached Files
File Type: txt log.txt (1.7 KB, 14 views)
File Type: s fileSystemTest.s (928 Bytes, 18 views)
nandius_c is offline  
Old 29 October 2017, 21:58   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,943
They are normal OS exceptions. Debugger simply logs them.

Note that interrupts are also listed as exceptions. 8 (privilege violation) is OS switching temporarily from user to supervisor mode.
Toni Wilen is online now  
Old 29 October 2017, 22:05   #5
nandius_c
Fernando Cabrera

 
Join Date: Oct 2013
Location: Spain
Posts: 82
Quote:
Originally Posted by Toni Wilen View Post
They are normal OS exceptions. Debugger simply logs them.

Note that interrupts are also listed as exceptions. 8 (privilege violation) is OS switching temporarily from user to supervisor mode.
OK! I was starting to think those exceptions didn't mean there was an error, but couldn't tell exactly what they meant. So, I understand I don't have to worry about them. Thanks, Toni .
nandius_c is offline  
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Step commands in debugger are throwing exceptions in console Dr. MefistO support.WinUAE 8 29 December 2015 14:48
Listing files, loading files and allocating all available chip ram. h0ffman Coders. System 16 04 April 2013 22:24
FAO people dealing with DoogUK Xytec MarketPlace 11 28 July 2009 14:05
Looking for A game Dealing With Time Manipulation (lots of info) Nuadin Retrogaming General Discussion 4 22 April 2009 12:44

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:37.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.14660 seconds with 13 queries