01 September 2022, 08:57 | #21 |
Registered User
Join Date: Apr 2021
Location: Italy
Posts: 21
|
|
01 September 2022, 09:17 | #22 |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 8,997
|
|
01 September 2022, 09:52 | #23 |
Registered User
Join Date: Apr 2021
Location: Italy
Posts: 21
|
|
01 September 2022, 23:34 | #24 |
Registered User
Join Date: Apr 2021
Location: Italy
Posts: 21
|
According to WinUAE emulation, the floppy light remains always on even when the spin sound stops. Turns back off only when I quit my game and go back to CLI.
|
02 September 2022, 15:54 | #25 | |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,500
|
Quote:
ptplayer.readme: Code:
This player is intended for games/demos which take over the hardware and disable the OS. mt_install_cia()it will replace the level-6 interrupt vector at VBR+$78. This also replaces any previous AmigaOS interrupt handler for level-6 interrupts. I guess this is the source for your problems with timer.device and trackdisk.device under AmigaOS. Solution: Take over the whole machine or use an OS-friendly PT-player. |
|
02 September 2022, 21:08 | #26 | |
Registered User
Join Date: Apr 2021
Location: Italy
Posts: 21
|
Quote:
Honestly this is the first time I try a "OS friendly" approach in C and the first time I read assets in memory from disk, I come from "old school" ways of coding, I've always coded in assembly with asmone and every asset included with incbins... Even if, in this game, my goal is to load everything I need from files and then call Forbid() to get maximum performance. |
|
02 September 2022, 22:34 | #27 |
Registered User
Join Date: Apr 2021
Location: Italy
Posts: 21
|
Found!!!
THIS was the problem: Code:
SetTaskPri(FindTask(NULL), TASK_PRIORITY); In any case, probably this instruction is a nonsense since I call Forbid() after finishing with disk read... So, the correct flow is:
The LED related hint by Galahad/FLT was VITAL, thank you my friend, you will be acknowledged in my very alpha-stage and work in progress C Amiga Engine. https://coppersoft.itch.io/planar Thank you all guys, Amiga community still rocks!!! Lorenzo |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
(A1200) Chinon FZ-354 Floppy Drive is spinning randomly | Sim085 | support.Hardware | 3 | 07 January 2022 08:54 |
CD Spinning Problems | spawnerbr | support.Hardware | 0 | 21 August 2020 06:46 |
Standard C libraries? aka fopen,fread,fwrite | FirstNE | Coders. C/C++ | 8 | 07 August 2020 22:05 |
Problem with fread while booting game from adf | MacSpain | Coders. General | 5 | 16 May 2020 11:34 |
Amiga 500 Panasonic floppy drive only spinning sometimes. | h4tt3n | support.Hardware | 5 | 24 January 2016 16:20 |
|
|