15 July 2023, 11:36 | #1001 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,474
|
Quote:
You will find two versions, both with forced initialization. In one case with a 'decent' value (probably not the one the programmer wanted, but that doesn't matter), the other with a problematic value. Both should behave the same way in all situations, emulated or not. |
|
15 July 2023, 12:03 | #1002 |
Amiga 500 User
Join Date: Jun 2013
Location: EU
Posts: 1,506
|
I don't know, I don't care if a program is broken or not, but how it behaves in real conditions! (ie on a real machine)
There are two ways to make programs work: or set the emulator to run programs or set programs to run on the emulator! (which is the correct way?) |
15 July 2023, 12:29 | #1003 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,474
|
Quote:
When I debugged last night I realized that the demo worked quite differently depending on the environment in which it started, until I found the very stupid setting of TB CRA and TAHI. That's why I made you two new versions of the executable: I didn't change anything in the demo code, but only in the initial setting of the offending register, which is now constant (the registers at code startup may not be identical even with identical physical configurations). This allows you to understand if it is an emulation problem or not. Now IT SHOULD work the same everywhere. Please check it. |
|
15 July 2023, 12:49 | #1004 |
Amiga 500 User
Join Date: Jun 2013
Location: EU
Posts: 1,506
|
I already checked:
TSB-LethalC_sane ... works TSB-LethalC_broken ... not working on both emus, winuae and denise! (so valid for emu conditions) But the original also works on a real machine! (still an emu problem to me) Edit: Which would mean that the starting conditions in the emulator do not correspond to those in the real machine! (as I understand it) (Except: "BigMarcPack38.adf F4: TSB / LethalC " works in Denise emu after hard reset but not in the WinUAE!?) Last edited by amilo3438; 15 July 2023 at 12:59. |
15 July 2023, 12:59 | #1005 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,474
|
Quote:
In the real machine the conditions are simply created for that register to have a 'sensible' value, but is only by chance! Even if you're using the same hardware setup it takes just a trifle to 'randomize' registers on program startup. That's why only the defined ones (D0/A0) should be used, the others have 'undefined' values (if you exclude those from the BCPL framework, but that have nothing to do now) If you still don't trust me, I can make another version that returns the value of D6 on exit, so you can see that it is the reason for all the mess and the emulation has nothing to do with it |
|
15 July 2023, 13:04 | #1006 | |
Amiga 500 User
Join Date: Jun 2013
Location: EU
Posts: 1,506
|
Quote:
Edit: But the question of whether the problem ever occurs on the real machine (with the original demo) has still not been answered? (or confirmed with testing) |
|
15 July 2023, 13:14 | #1007 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,474
|
Quote:
Moreover now WinUAE (rightly so) uses a random seed on startup which changes, like in real machines, some conditions. However this is the offending code, look at how many reasons it is wrong.. Code:
lea.l $00bfd000,a0 move.b #$7f,(a0,$0d00) == $00bfdd00 move.b d6,(a0,$0e00) == $00bfde00 move.b #$ef,(a0,$0400) == $00bfd400 move.b d6,(a0,$0500) == $00bfd500 move.b #$81,(a0,$0d00) == $00bfdd00 Multiple reasons why it (do not) works by chance |
|
15 July 2023, 13:28 | #1008 |
Amiga 500 User
Join Date: Jun 2013
Location: EU
Posts: 1,506
|
I give up, it is beyond my ability to understand! (or I'm too stupid to process this or too stubborn)
|
15 July 2023, 13:45 | #1009 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,474
|
Quote:
Even if it seems impossible to me since there are high enough values of TAHI such that during the VBI a forced request to restart the timer before the underflow is always satisfied (so no CIA IRQ trigger and therefore audio DMA is not activated and notes are skipped). In any case I ran out of ways to explain it to you, but sure my fault, don't worry |
|
15 July 2023, 14:17 | #1010 |
Registered User
Join Date: Jul 2019
Location: Poland
Posts: 308
|
I'm far from understanding too, but I understand the point of amilo that if the demo always works on certain real system, it should always work on the same emulated system (even if the demo is broken). If it does not, emulation is not accurate.
|
15 July 2023, 14:37 | #1011 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
|
Problem with these kind of bugs where demo uses unitialized variables is that there is no true correct or false values. Value for example might come from uninitialized memory or from pack menu and so on. Even when booting exe directly, layout of the virtual ADF can affect it or floppy speed (WinUAE for example always uses turbo floppy when loading exes turned to ADFs)
Only correct test is to use existing ADF (for example some menu pack) or create your own ADF and use it. EDIT: and still floppy mechanical differences can affect it. |
15 July 2023, 17:16 | #1012 | |
Amiga 500 User
Join Date: Jun 2013
Location: EU
Posts: 1,506
|
Quote:
Last edited by amilo3438; 15 July 2023 at 18:21. |
|
15 July 2023, 18:21 | #1013 |
Amiga 500 User
Join Date: Jun 2013
Location: EU
Posts: 1,506
|
And the same test as above in winuae:
Code:
Lethal (Demo) by The Special Brothers http://janeway.exotica.org.uk/release.php?id=1070 tested on latest beta 7z (13.07.2023.): -------------------------------------------------------------------------------------------------------------- WinUAE configuration: KS 1.3 ECS 512+512 KS 1.3 ECS 512 (after hard reset) (after hard reset) -------------------------------------------------------------------------------------------------------------- From creaated adf: ------------------ TSB-LethalC.adf - - (it returns to CLI) + (if started from CLI) -------------------------------------------------------------------------------------------------------------- From pack disks: ---------------- Angels-CompactDisk05.adf - + Awesome-CriminallyInsane09.adf - + BigMarcPack38.adf - (work in denise emu!) - (it returns to CLI) BJ-DemoLibDisk046.adf + - LSD-AddictionPack050.adf + - (Guru Meditation) PowerXtreme-DemosPack4.adf + - Rebels-DizzyDream07.adf + + SCOOPEX-RangerPack136.adf + + Treacl-DreamPack3.adf + + (weird 1st sounds) TRSI-TuffStuff15.adf + + TSB-InternPack36.adf - + TSB-Luxpack03.adf - - (it stops, but denise emu has problem here) UFO-DemoPack.adf - (work in denise emu!) + -------------------------------------------------------------------------------------------------------------- + = work - = not work Almost same as denise emu except two pack disks in the KS 1.3 ECS 512+512 configuration that not work in winuae! EDIT: I wonder if these few that work in KS 1.3 ECS 512 and not in KS 1.3 ECS 512+512 config are working on the real machine in KS 1.3 ECS 512+512!? (and one that does not work in any configuration) Last edited by amilo3438; 15 July 2023 at 18:33. |
15 July 2023, 20:10 | #1014 |
Registered User
Join Date: Feb 2018
Location: France
Posts: 505
|
@amilo3438
Good morning, I didn't quite understand the problem. Without checking on hard beforehand, we cannot know the "good" behavior (even random). Some of the menus of the packs can leave "traces" after a reboot (or even a first launch) which can alter the operation. Is it concretely that there have been repeated tests on real hardware (Agnus ECS 512+512) for your tests on the compilations? I will look with the executable alone on Adf. And I will have it checked on hard (if possible) under the same conditions. |
17 July 2023, 18:10 | #1015 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,516
|
Quote:
|
|
27 July 2023, 23:47 | #1016 |
Registered User
Join Date: Jul 2019
Location: Poland
Posts: 308
|
Is Syntro-n (Crack Intro) by Capsule properly rendered on WinUAE? From what I understand it should interlace middle part of the screen, but on WinUAE emulating A500 whole screen is interlaced, and on emulating A1200 only middle is laced but lacks resolution. Is it consistent with real hardware?
http://janeway.exotica.org.uk/release.php?id=105524 |
28 July 2023, 00:27 | #1017 | |||
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,474
|
Quote:
The field either it is interlaced or progressive (the choice of short or long frame display is made at the beginning of the vertical blank). You can simply choose whether to 'duplicate' the lines displayed, a bit like dragging two wb screens with the two resolutions mixed. Quote:
Quote:
However, I don't see any differences in WinUAE between A500 and A1200 emulation. Are we using different versions? Or I don't understand what difference I should see |
|||
28 July 2023, 00:51 | #1018 |
Registered User
Join Date: Jul 2019
Location: Poland
Posts: 308
|
My A1200 config seems somehow corrupted because in the demo it adds scanlines even though they are off everywhere (on AmigaDOS screen there are no scanlines)... Doesn't happen on Quickstart. Newest official 5.0.0
Sorry for confusion. |
28 July 2023, 00:56 | #1019 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,474
|
I was exploring the possibility that there was a 'field dominance' issue (and this would imply a bad initial setup code).
And when trying various starts I got random crashes of the intro with the A500 configuration. So for sure there's some little problem.. if it were in the setup it would explain the possible noticed (I haven't seen it though, but from what you've described it could be that) inverted fields and it can be corrected. Do you happen to start the intro from a wb in interlaced mode? I'll look at it better tomorrow |
28 July 2023, 01:48 | #1020 |
Registered User
Join Date: Jul 2019
Location: Poland
Posts: 308
|
No I start it via mounting the archive as floppy. I might record video of how it is - are you interested in A500, A1200 issue, or both?
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problematic GVP A530 Turbo | Mogsy | support.Hardware | 22 | 13 November 2012 19:12 |
Problematic thread? | prowler | project.EAB | 5 | 28 October 2011 00:06 |
Problematic Holiday Lemmings 94 demo disk | MethodGit | support.Games | 19 | 08 November 2010 03:56 |
Problematic slaves list | keropi | project.Killergorilla's WHD packs | 44 | 28 November 2008 12:46 |
Looking for two demos... | eternalcrusader | request.Demos | 3 | 01 August 2006 08:57 |
|
|