dwhyte Posted September 10, 2007 Share Posted September 10, 2007 I've been playing around with Raster Music Tracker for a couple of days now and enjoy using it a lot more than A.M.P.2. What I want to know is just how many cycles are available... I'm trying to run a DLI on every line (24 @ Mode 2) with just a simple color change but there's some flashing scanlines every now and then. I'm trying to figure out where I can gain some cycles or which cycles I could lose (would love to have my DLI). Here is the file... nothing fancy, just tatqoo's "forgotten_low" playing and a screen resembling green-bar printer paper... I should be able to do this, and it should be able to be done, but I'm missing something and not sure what... p.s. Wizardry is coming along... more slowly now as my work schedule has changed, but it WILL be released for the Atari... now modeled after the C64 version rather than the Apple one... Barpaper.xex.zip Quote Link to comment Share on other sites More sharing options...
_Fandal_ Posted September 10, 2007 Share Posted September 10, 2007 I've been playing around with Raster Music Tracker for a couple of days now and enjoy using it a lot more than A.M.P.2. What I want to know is just how many cycles are available... I'm trying to run a DLI on every line (24 @ Mode 2) with just a simple color change but there's some flashing scanlines every now and then. I'm trying to figure out where I can gain some cycles or which cycles I could lose (would love to have my DLI). Here is the file... nothing fancy, just tatqoo's "forgotten_low" playing and a screen resembling green-bar printer paper... I should be able to do this, and it should be able to be done, but I'm missing something and not sure what... p.s. Wizardry is coming along... more slowly now as my work schedule has changed, but it WILL be released for the Atari... now modeled after the C64 version rather than the Apple one... Your DLI is a problem, not RMT. RMT doesn't eat any cycles on any scanline. You only call RMT routine when VCOUNT is set to zero. This is your original DLI: PHA LDA $00FF CMP #$00 BNE DLI_2 LDA #$01 STA $00FF LDA #$00 STA $D40A LDA #$BF STA $D018 JMP DLI_END DLI_2 LDA #$00 STA $00FF LDA #$00 STA $D40A LDA #$BD STA $D018 DLI_END PLA RTI It's too much complicated and eats too many cycles before you write to color register. Try something like this and everything will be OK: PHA LDA $FF BNE DLI_2 LDA #$BF STA $D40A STA $D018 INC $FF BNE DLI_END DLI_2 LDA #$BD STA $D40A STA $D018 DEC $FF DLI_END PLA RTI Quote Link to comment Share on other sites More sharing options...
MaPa Posted September 10, 2007 Share Posted September 10, 2007 (edited) I'm not a code guru but if you want to just change these two colors you can try self-modify code like this: PHA label: LDA #$BF STA $D40A STA $D018 EOR #$02 STA label+1 PLA RTI Edited September 10, 2007 by MaPa Quote Link to comment Share on other sites More sharing options...
raster/c.p.u. Posted September 10, 2007 Share Posted September 10, 2007 Yes, guys, you're right. It's DLI problem, not RMT. I'm not a code guru but if you want to just change these two colors you can try self-modify code like this: ... Nice code, MaPa. Just beware there has to be even number of lines, in other way there will be very nice blinking effect. (or better - there should be some initializing of label+1 value for each screen (in VBI)). Quote Link to comment Share on other sites More sharing options...
dwhyte Posted September 10, 2007 Author Share Posted September 10, 2007 Thanks guys!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.