Project

General

Profile

Actions

Emulator Issues #670

closed

twi - instruction not implemented

Added by federelli about 15 years ago.

Status:
Fixed
Priority:
Low
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Feature request
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

What steps will reproduce the problem?

  1. What i did was play metroid prime with STC off, to see if STC was the
    cause of the issue at issue 636.
  2. For the first time in hundreds of builds, it's stable enough to play as
    long as you want with STC off.
  3. When i reach the area where the emulator always hangs, the emulator
    started spamming me with twi - instruction not implemented. Holding enter
    for some seconds made it go away, and i could keep playing normally.
    Eventually the thing popped up again, and i did the enter thing, once
    again. The third time it popped up, the emulator slowed down to less than 1
    fps, like it always does, and when i resized the screen it crashed again.

What is the expected output? What do you see instead?
Normal gameplay, no slowdowns to less than 1fps out of nowhere, no
shutdowns when resizing.

What version of the product are you using? On what operating system?
r2495

Please provide any additional information below.

Once the slowdown hits, it's impossible to get good fps back, only when
leaving fullscreen the game returns to somewhere around 10fps, and then
slowly starts going to less than 1fps again, that's when if you resize the
window, the emulator hangs.

Actions #2

Updated by federelli about 15 years ago

The errors are different, i just get "twi - instruction not implemented" nothing else.

Actions #3

Updated by Anonymous about 15 years ago

  • Status changed from New to Work started
  • Issue type set to Feature request
  • Priority set to Low

please let us know exactly where it happens, and if it happens in that location
dependably. I think tw/twi is the game trying to save itself (or else it is just
getting ready to die). Just for the sake of completeness we should emulate it though.

I added the code from Dolwin, but need something to test it on...

Actions #4

Updated by nakeee about 15 years ago

The code is committed please test

Actions #5

Updated by Anonymous about 15 years ago

p.s. - currently the instruction is implemented but the exception type isn't handled.
so don't bother testing until that changes :)

Actions #6

Updated by federelli about 15 years ago

Reproducing this is extremely hard, i've been unable to do it since r2728. Whoever it
happens in the room in magmoor cavern where there's a huge grate on the floor, in the
same room you have platforms that lead up to a door. This very same room made the
emulator slow down to a crawl and then hang, but since that was fixed, the twi pop-up
has not appeared.

Actions #7

Updated by nakeee about 15 years ago

mark as fixed?

Actions #8

Updated by XTra.KrazzY about 15 years ago

Maybe it was sync issues that caused the game to call twi.

I would not hurry up and call it fixed though. Still have the exception types to trap.

But what the heck, mark as fixed.

Actions #9

Updated by Anonymous about 15 years ago

  • Status changed from Work started to Fixed

trap is the only thing we currently handle for EXCEPTION_PROGRAM. so tw/twi is done,
but not other program exceptions...

Marking as fixed. I've never actually been able to cause a twi in order to test, but
the handling is correct, afaik :)

Actions

Also available in: Atom PDF