WHDLoad MantisBT - Hyperion
View Issue Details
0005848Hyperion[All Projects] Generalpublic2022-10-31 16:002022-11-14 17:03
Reporterretrogamer 
Assigned ToCFOU 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
MachineA500
CPU68010
CPUSpeed7
ChipSetOCS
GFXCardNone
ChipMem256 KB
FastMem0 MB
WorkbenchOS 3.2
KickROM47 - Kick 3.2
KickSoftNone
WHDLoad18.8
importedyes
Summary0005848: Exception "Integer Divide by Zero" ($14) at $22956 occurred. Error message with
DescriptionGameVersion: english,pal,2 disks
SlaveVersion: 1.0 from 20.05.2000

Exception "Integer Divide by Zero" ($14) at $22956 occurred.
Error message with 68010 cpu.
TagsNo tags attached.
Attached Files? .whdl_registerhyperion (2,944) 2022-10-31 16:39
http://mantis.whdload.de/file_download.php?file_id=1485&type=bug

Notes
(0011874)
retrogamer   
2022-10-31 16:38   
.whdl_register file attached.
(0011893)
CFOU   
2022-11-02 12:01   
to try
(0011934)
CFOU   
2022-11-09 18:25   
i think is a WHDLoad's bug.

indeed i use WHDLF_EmulDivZero flag, normally WHDLoad would not leave on error message and ignore this exception.

same problem with Twylyte and Hoversprint (soon released)

I asked Bert (WEPL) about this.

I'm waiting for his answer.

see AUTODOC:
WHDLF_EmulDivZero / WHDLB_EmulDivZero
                   This flag has an effect only if the VBR is moved by WHDLoad
                   (i.e. the machine is at least a 68010 and the tooltype
                   NoVBRMove is not set).
                   If the flag is set all division by zero exceptions are
                   emulated by the exception handler inside WHDLoad. I.e. the
                   handler checks if the vector ($14) is initialized and if
                   the routine to which the vector points to will be called by
                   WHDLoad.
                   This flag has precedence over the flag NoDivZero.
(0011952)
CFOU   
2022-11-10 23:36   
@retrogamer
have you compare with real 68010?

it's pehaps an issue with Winuae?
(0011956)
CFOU   
2022-11-11 14:25   
see:
https://eab.abime.net/showthread.php?t=112420
(0011976)
CFOU   
2022-11-14 13:12   
fixed with 2.0
(0011980)
retrogamer   
2022-11-14 17:03   
@CFOU

No I have only tested with 68010 with Winaue.

Is it possible fix the "Integer Divide by Zero" issue with the other games as well?

Issue History
2022-10-31 16:00administratorNew Issue
2022-10-31 16:00administratorStatusnew => assigned
2022-10-31 16:00administratorAssigned To => CFOU
2022-10-31 16:38retrogamerNote Added: 0011874
2022-10-31 16:39retrogamerFile Added: .whdl_registerhyperion
2022-11-02 12:01CFOUNote Added: 0011893
2022-11-09 18:25CFOUNote Added: 0011934
2022-11-10 23:36CFOUNote Added: 0011952
2022-11-11 14:25CFOUNote Added: 0011956
2022-11-14 13:12CFOUStatusassigned => resolved
2022-11-14 13:12CFOUResolutionopen => fixed
2022-11-14 13:12CFOUNote Added: 0011976
2022-11-14 17:03retrogamerNote Added: 0011980