27 July 2017, 20:39 | #41 |
Registered User
Join Date: Apr 2016
Location: Perth, Australia
Posts: 388
|
I should also mention that if my WB is in my usual NTSC interlaced mode and I use your old startup then as soon as I run your code my 1084S screen flickers for a second as if it is switching into the NTSC mode for a split second then going back into PAL again for your program, whereas if my WB is in PAL non interlace then the screen doesn't do this at all and is always able to exit fine.
|
27 July 2017, 23:11 | #42 | |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,604
|
OK, it was worth a shot. Probably everything would work if you commented out the two jsr -222(a6) lines in wrapper1.04!.S. This is why I hesitate to add stuff I can't test on my own reliably.
Quote:
So removing jsrs might fix this too |
|
28 July 2017, 08:00 | #43 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
|
28 July 2017, 16:26 | #44 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,604
|
CRT monitors/TVs could hiccup when not correctly driven, but I think this is evitable. If you have such a monitor I could send a test? Anyway, maybe something for PM or another thread.
|
28 July 2017, 17:50 | #45 | |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
Quote:
I guess that if Nightfox's monitor is 1084S-P1 then some small sync loss is "normal". |
|
28 July 2017, 20:12 | #46 |
Registered User
Join Date: Apr 2016
Location: Perth, Australia
Posts: 388
|
I tested this just then. Running the program again has the problem of displaying Workbench requiring Amiga + N to go to the program's screen. It does exit fine though.
|
28 July 2017, 21:55 | #47 | |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,604
|
Quote:
It's probably the system doing this then, but you could see if unchecking Safety (if it does what I think it does) makes a difference. |
|
29 July 2017, 00:01 | #48 |
Registered User
Join Date: Apr 2016
Location: Perth, Australia
Posts: 388
|
Sorry I tested it again and it exited to black again. I guess I was just having a lucky streak in the last tests. Safety also makes no difference, and even with safety off I get put into the WB screen when I run the program
|
29 July 2017, 09:04 | #49 | |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
Quote:
|
|
29 July 2017, 18:45 | #50 | |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,604
|
Quote:
If yes and yes, then it could be outside the startup completely that it happens. You could run Asman's code a bunch of times and see if you can provoke the same. (It doesn't turn off the interrupts, so it's not a perfect test. No black screen=no conclusion, 1 black screen=result.) Last edited by Photon; 29 July 2017 at 19:02. |
|
29 July 2017, 22:03 | #51 |
68k
Join Date: Sep 2005
Location: Somewhere
Posts: 828
|
@Nightfox
What about such simple example Code:
section test,CODE_C move.w #$7fff,d0 move.w d0,$dff09a move.w d0,$dff096 move.w d0,$dff09c lea copper(pc),a0 move.l a0,$dff080 move.w a0,$dff088 move.w #$8280,$dff096 lmb btst #6,$bfe001 bne lmb rts copper: dc.l $01800000 dc.l $fffffffe |
01 August 2017, 18:39 | #52 | |
Registered User
Join Date: Apr 2016
Location: Perth, Australia
Posts: 388
|
Quote:
Your code works fine and exits to Asm-One correctly. |
|
01 August 2017, 19:24 | #53 |
68k
Join Date: Sep 2005
Location: Somewhere
Posts: 828
|
@Nightfox. Thanks for test. I have my own startup code and I am really curious if it works correctly on your environment. But first I must test it a bit
|
01 August 2017, 19:39 | #54 | |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,604
|
Quote:
And when the purple is showing, the interrupts are turned off (except our own VBI), so you should not be able to press Amiga+N at all... The only possibility that would allow you to press Amiga+N while the demo is running (purple) that I can see is that somehow the VBR is moved by some software that doesn't update Exec to reflect the change. Then I would be enabling the system's VBI and that would allow you to switch, as well as interfere with the hardware takeover/return. I think that's the reason then. Supervisor() return and OldOpenLibrary() should preserve a4, but there could be a difference on 3.9. Simplest test: #$c020 -> #0 in startup1.04.S, it should really show the purple without having to press Amiga+N, at least. |
|
03 August 2017, 22:54 | #55 |
Registered User
Join Date: Apr 2016
Location: Perth, Australia
Posts: 388
|
I'll test that tomorrow Photon. I managed to damage the ribbon cable of my A1200 keyboard today (somehow managed to accidentally touch it with my soldering iron!) I melted away 2 of the traces in the middle of the cable. I've put in a new plastic square under where the hole formed and put silver paint on it letting it dry overnight to see if I can get this working again. Otherwise I will just connect a temporary USB keyboard
Also I suspect one of the times I tested your code when it was working, it was probably only working due to sheer luck since for some reason there is about a 20% chance that it does exit correctly.. and maybe I just happened to get that lucky 20% every time I tested it |
07 August 2017, 13:52 | #56 |
Registered User
Join Date: Apr 2016
Location: Perth, Australia
Posts: 388
|
As soon as I repaired my keyboard ribbon cable and tested it, my beloved Commodore 1084S turns black and starts emitting a somewhat loud high pitched noise... I think it's dead
|
10 October 2017, 17:26 | #57 |
Registered User
Join Date: Apr 2016
Location: Perth, Australia
Posts: 388
|
Update: There was nothing wrong with the startup code at all. Turns out I had an option in AsmOne enabled called "WB to front" which I'm guessing puts Workbench on the screen right before your code executes and that screws everything up. I guess that option is really only useful for programs that run in a window
|
11 October 2017, 10:21 | #58 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
|
11 October 2017, 10:30 | #59 |
Registered User
Join Date: Apr 2016
Location: Perth, Australia
Posts: 388
|
Haha yep. I am curious though, why would AsmOne moving WB to front cause this issue?
|
23 October 2017, 08:59 | #60 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,604
|
Probably it's meant for developing apps that require the Workbench windowing environment and should open windows on the Workbench screen (i.e. they have no screen of their own).
And so even though the editor is in PAL, the split second before execution of your code it pulls the rug out from under by switching to the NTSC mode you use for Workbench. And then VPOS never reaches the last PAL rasterline, throwing off the WaitEOF (which could be rewritten to handle NTSC). |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can anyone work with the code from this game...? | Peter | Coders. General | 3 | 09 November 2009 16:19 |
WinUAE: Sumea Demo doesn't work properly | Leonid | support.WinUAE | 7 | 06 May 2008 20:33 |
Rocket ranger code wheel won't work | paul9090 | support.Games | 32 | 18 February 2002 23:30 |
Can anyone make this demo work? | Ziaxx | support.Demos | 20 | 02 January 2002 21:03 |
|
|