Login
Back to forumReply to this topicGo to last reply

Posted By

Frog
on 2008-08-19
09:20:13
 irq időzítés

Üdvözlet mindenkinek!

Bocs, hogy ilyen lamer kérdéssel zaklatlak benneteket, de egyszerüen nem sikerül megoldanom a következő problémát.
Van 2x4db rasztercsíkom, ez eddig ok.
Ha line1+1 -et csökkentem és line2+1 -et növelem, akkor távolodnak egymástól, ez is ok.
DE össze-vissza villog és nem tudom, hogy miért?
Tud valaki segíteni?

irq     STA ras+1
STX rxs+1
STY rys+1

LDX #$a0
LDY #$03
loop1 LDA collin1,y
w1 CPX $ff1e
BCS w1
STA $ff15
STA $ff19
DEY
BPL loop1

LDA #lo irq2
STA $fffe
LDA #hi irq2
STA $ffff

line2 LDA #$67
STA $ff0b

endirq ASL $ff09
ras LDA #$00
rxs LDX #$00
rys LDY #$00
RTI


irq2 STA ras+1
STX rxs+1
STY rys+1

LDX #$a0
LDY #$03
loop2 LDA collin2,y
w2 CPX $ff1e
BCS w2
STA $ff15
STA $ff19
DEY
BPL loop2

mus_ok LDA #$01
BNE nomus
JSR muzax
nomus
LDA #lo irq
STA $fffe
LDA #hi irq
STA $ffff

line1 LDA #$61
STA $ff0b

JMP endirq


Üdv: Béci

 irq timing

Greetings to all!

Sorry for bothering you with such a lame question, but I simply cannot solve the following problem.
I have 2x4 rasterlines, so far so good.
If I decrease line1+1 and I increase line2+1, then they get further apart, still okay so far.
BUT it flashes all over the place and I don't know why?
Can someone help?

Posted By

Csabo
on 2008-08-19
13:55:13
 Re: irq időzítés

A fenti kódban semmi hiba nincs. Kipróbáltam, és hozzáírtam azt is amit mondtál, vagyis minden képernyõleírásnál csökkentettem line1+1-et és növeltem line2+1-et, de nem villog.

Én szívesen megkeresem és kijavítom neked a bug-ot, csak kell hozzá az egész kód.

 Re: irq időzítés

There aren't any bugs in the above code. I tried it, and I added what you said, that is in every frame I decrease line1+1 and increase line2+1, but it's not flashing.

I'd be happy to find and fix the bug for you, but I'll need the whole code.

Posted By

Frog
on 2008-08-19
17:44:20
 Re: irq időzítés

Köszönöm a segítséget!
Küldtem a mail-t.



Back to topReply to this topic


Copyright © Plus/4 World Team, 2001-2024