Jump to content
IGNORED

What's a good "rule of thumb" for available cycles while using RMT...


dwhyte

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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)).

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...