Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Basics questions

Reply to topic
Author Message
Kroustibat
  • Guest
Reply with quote
Basics questions
Post Posted: Thu May 18, 2000 10:30 am

Hello all,

After reading some docs,i have some dark points about the
the IRQ_LINE and the IRQ_VECTOR ?

I suppose that the IRQ_LINE is the irq mode of the Z80 (0->2) and the IRQ_VECTOR is the address where the PC must jump.
Am i right ?

Tia
 
  • Joined: 28 Sep 1999
  • Posts: 1197
Reply with quote
Post Posted: Thu May 18, 2000 4:17 pm

Quote
> I suppose that the IRQ_LINE is the irq mode of the Z80 (0->2) and the IRQ_VECTOR is the address where the PC must jump.
> Am i right ?

The interrupt mode can only be set by a software instruction (like im 1, im 2, etc.)

The IRQ line is a pin on the Z80 chip which other devices can use to cause an interrupt.
It doesn't affect the interrupt mode.

You're right about the interrupt vector.

In the case of the SMS, it's always 0x38, but for some games
that use IM 0 and want to read data off the bus, the return
value is 0xFF. (which is just a rst 38h instruction if memory serves)
  View user's profile Send private message Visit poster's website
Reply to topic



Back to the top of this page

Back to SMS Power!