Previous | Next
| From: Rachy (all posts)
Date: 2001-07-26
Subject: Castle Master once again
|
Hello!
Just to clear up this discussion, here comes the exact snap of the problematic parts of Castle Master. It starts from $473b:
$473b SEI
STA $FF3F
LDA #$00
STA $009A
JSR $87B1
[...snip...]
$4760 LDA #$40
STA $FFFE
LDA #$F2
STA $FFFF
LDX #$FF
TXS
[...etc...]
$87B1 CLI
NOP
NOP
NOP
NOP
LDX #$02
LDA $00,X
[...snip...]
$87C7 LDA #$00
STA $01
RTS
The sign [...snip...] means I removed some unimportant code parts from there.
Now you can see, that IRQ is not cleared until the first CLI, but the preparing of interrupt vector ($FFFE-FFFF) is coming much later.
After depacking IRQ must be triggered (depacking takes a lot of time), so this piece of code could not working if interrupt request would be taken immediately after CLI command.
It is working (or in very rare cases it freezed, but mostly working)
on a real Plus/4, so what is the truth then?
Thanks in advance:
Rajnai Almos
+------------------------=%%###########&%%=-------------------------------+
| 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 |