|
Atari coding BBS
Synchronous code on the STE |
Posted by: Bod/STAX
|
Jun,03.2005-20:18
|
I'm currently working on something for the STE that requires 'sync' code. I have written a routine that displays a picture in 'Spectrum Mode'. However I am trying to incorporate this into another piece of code that uses the STE's extended scanline feature. When I do this the code is synchronous (I know that because I'm opening a border as well and that is fine and it is part of the same routine) but the palette splits are totally in the wrong place.
My sync code is:
move.b $ffff8209.w,d0
loop: cmp.b $ffff8209.w,d0
beq.s loop
not.w d0,d0
lsr.w d0,d0
dcb.b.w 42,$4e71
etc., etc.,
I know that you can also sync-code by replacing the not.w with a sub.w that takes a value away from $ffff8209 before the lsr could this be a possible solution because I've tried almost everything else.
Also I've tried cold-booting my STE, assembling my original picture code and running it and it works fine, assembling my 'incorporated' picture code and then that doesn't work, going back to my original picture code, assembling and running that and that then doen't work also.
Any thoughts are welcome.
|
[All messages in this thread] [Start new thread]
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|