Thread: PDOS for Amiga
View Single Post
Old 06 March 2021, 01:33   #62
Bruce Abbott
Registered User
 
Bruce Abbott's Avatar
 
Join Date: Mar 2018
Location: Hastings, New Zealand
Posts: 2,692
Quote:
Originally Posted by kerravon View Post
I'm not talking about Amiga OS, I'm talking about Amiga PDOS. For what reason can I not keep interrupts disabled on Amiga PDOS?
Why would you even want to?

Quote:
Also, even if I do enable interrupts, how many different interrupts will the hardware generate?
There are 6 interrupt levels, used by the serial port, timers, vertical blank, blitter, copper, disk controller and audio channels. If you take over the system you can get away with not using them, but then you must poll each device to see if it needs servicing.

Quote:
And I would actually expect that to have a default handler in the new BIOS. Right?
Yes.

Quote:
I don't think the BIOS can have a requirement for the operating system to take ownership of interrupts by a particular point.
The BIOS should be responsible for handling interrupts, as this is hardware that higher levels shouldn't have to know about.

The purpose of a BIOS is to virtualize the hardware. When you port an OS from one hardware platform to another, this is the part that needs to be written to handle that specific hardware. On a PC the BIOS is in a ROM on the motherboard, and any hardware differences are incorporated into it by the manufacturer. The Amiga's 'BIOS' is integrated into its multitasking OS and cannot easily be extracted, so to do what you want without any baggage you need a custom BIOS.

When porting from x86 to 68k, the compiler must also generate appropriate instructions to suit the CPU. A PC's BIOS is accessed via x86 software 'interrupts'. The 68000 can do something similar with traps. The Atari ST uses trap #13 to call its BIOS functions.
Bruce Abbott is offline  
 
Page generated in 0.04425 seconds with 11 queries