It is currently Mon Oct 20, 2014 4:49 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Fri Jun 24, 2011 10:22 pm 
Offline
User avatar
 Profile

Joined: Sat Mar 26, 2011 3:01 pm
Posts: 263
Location: Kings Langley
Here is a demo of how to scroll a mode 7 screen a pixel at a time vertically (uses BeebAsm).

The description is on the Sample Code page http://www.retrosoftware.co.uk/wiki/index.php/VerticalScrollingMode7

Please feel free to comment here.


Attachments:
mode7.zip [1.91 KiB]
Downloaded 42 times
Top
 
PostPosted: Fri Jun 24, 2011 10:32 pm 
Offline
Site Admin
User avatar
 Profile

Joined: Wed Dec 19, 2007 10:46 pm
Posts: 779
ooh, that's strangely hypnotic ... :shock:

Sam.


Top
 
PostPosted: Wed Jun 29, 2011 1:33 pm 
Offline
User avatar
 Profile

Joined: Sat Mar 26, 2011 3:01 pm
Posts: 263
Location: Kings Langley
Here is the corrected code with nice scrolling!

I added the unroll x3 and had to add a couple of RTSs as the old ones (return and retern) were no longer in range!

Even more hypnotic now :shock:

Moral: don't set A to what you need and then call vsync_wait to splat it!

[Edit] Premature optimisation of the 3 loads and 2 stores prior to the draw_map call!


Attachments:
File comment: Fixed code so scrolls nicely
mode7.zip [2.01 KiB]
Downloaded 58 times
Top
 
PostPosted: Fri Jan 18, 2013 7:03 pm 
Offline
User avatar
 Profile

Joined: Sat Mar 26, 2011 3:01 pm
Posts: 263
Location: Kings Langley
30 downloads and no more comments - is everyone sat Mesmerized in front of their Beebs :shock:


Top
 
PostPosted: Mon Jan 21, 2013 1:07 pm 
Offline
 Profile

Joined: Tue Oct 19, 2010 7:45 am
Posts: 25
tricky wrote:
is everyone sat Mesmerized in front of their Beebs


Indeed....... 8-)


Top
 
PostPosted: Sun Nov 10, 2013 1:50 pm 
Offline
User avatar
 Profile

Joined: Sat Mar 26, 2011 3:01 pm
Posts: 263
Location: Kings Langley
It seems that I just love replying to myself!

I thought that I should mention that this doesn't actually hardware scroll the screen, it redraws the whole screen every frame, that is why some can be left un-scrolled (if desired) and why it takes nearly 1/50th of a second to draw a frame.

If you watch for a while, you will see some parts of the screen have bits that change as they scroll down, this is where the values being read by the program change each frame, either because the OS is changing them or because they are being read from HW that has different values each frame (eg timers).


Top
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron