Login
Search for:


Previous | Next

From: Rachy (all posts)
Date: 2001-07-25
Subject: Re: interrupt
Hello!

On 24 Jul 2001, at 15:05, Hársfalvi Levente wrote:

> Yes it should do like that, as far as I'm concerned. The IRQ line
> remains asserted as long as there's at least one pending IRQ. Now,

But it means, that this code will not work:

SEI
STA $FF3F
LDA #$00
STA $FFFE
STA $FFFF
LDA #$08
STA $FF0A
LDA #$20
STA $FF00
LDA #$00
STA $FF01

LDY #$00 ;To make sure an interrupt triggered b: LDX #$00
a: DEX
BNE a
DEY
BNE b

CLI
LDA #<irq
STA $FFFE
LDA #>irq
STA $FFFF c: JMP c

irq: ASL$FF09
RTI

I don't know if this piece of code does work on a real machine, but I think it would.

What is your opinion?

By:

Almos Rajnai

+------------------------=%%&############&%%=-------------------------------+
| Rachy of Bi0Hazard | PowerAmiga owner | http://amigos.amiga.hu/rachy/ |
|e-mail: racs@fs2.bdtf.hu| No Risc No Fun! | ATO Hungarian member |
+---ICQ:-16342960--------=%%&############&%%=-----Phone:+36 20 9891489------+

Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon