- Joined: 03 Aug 2017
- Posts: 61
- Location: Munich
|
interrupt modes IM0 and IM2
Posted: Wed Aug 16, 2017 12:49 pm
|
Hi,
I wonder if there is any SMS cartridge or device (connected to the extension port) which uses IM0 oder IM2, all the neccessary connections should be available.
If there is no official SW/HW, that use IM0/2, maybe someone used it for some homebrew project (e.g. extending the SMS to a home computer with keyboard, floppy disc etc.).
Bye,
Knaeckebrot
|
- Joined: 05 Jul 2017
- Posts: 67
- Location: Cornwall, United Kingdom
|
Posted: Wed Aug 16, 2017 2:53 pm
|
As I understand it they both require external hardware?
|
- Site Admin
- Joined: 19 Oct 1999
- Posts: 14997
- Location: London
|
Posted: Wed Aug 16, 2017 6:50 pm
|
Some games use the other interrupt modes for bad reasons (not doing the canonical di; im 1 on startup), but I can't remember an example.
|
- Joined: 03 Aug 2017
- Posts: 61
- Location: Munich
|
Posted: Wed Aug 16, 2017 11:06 pm
|
matt wrote As I understand it they both require external hardware?
(I'm not sure if I understand you correctly)
You definitely need some logic in hardware (which the SMS lacks). To use IM0/2, the hardware has to specifically implement the Z80-specific interrupt procedure, e.g. putting a "RST xy" or the LSB of the interrupt vector table address on the bus.
Just looking at the pins, each external accessory including the cartridges should be able *in principle* to use IM0/2 (as intended by Zilog).
|
- Joined: 17 Nov 2015
- Posts: 97
- Location: Canada
|
Posted: Sat Aug 19, 2017 1:49 am
|
Knaeckebrot wrote To use IM0/2, the hardware has to specifically implement the Z80-specific interrupt procedure, e.g. putting a "RST xy" or the LSB of the interrupt vector table address on the bus.
Yes and this is easy to achieve for im2 if you use the z80 peripherals to do the interfacing like the pio, ctc, sio, etc.
|