Search the web
Sign In
New User? Sign Up
vmu-dev · The VMU Development list
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Re: [vmu] Re: Basic ASM   Message List  
Reply | Forward Message #455 of 1156 |
WOW!

I had to get my calculator out and manually try your routine a couple
of times and it really works!.

it just so damm short, was it the logicaly the 1st thing you tried?
my code goes on for miles!

I will immedicaly pinch this and lower my cycles per redraw emensly.

Thanks you!

(my current routine was taking to long to draw 18 sprites)

you are my hero!


--- tyro@... wrote: > On 14 Jul 00, rednuht@...
wrote:
>
> > could some of the people who have successfully used ASM for the vmu
> > have a look at this please.
>
> First off, *FOR GOD'S SAKE* make sure that the code you post
> (*INCLUDING*
> the width added by the tabulator chars!) will not exceed 73 chars a
> line!
> It looks like SHIT when it's viewed on an 80x25 chars display! And
> you
> others, when you _quote_ source code, then please make sure that the
>
> quoted lines stay readable and aren't split over multiple lines!
> *cough*
> edit by hand if necessary *cough*
>
> Anyway, the following is a short routine that I occasionally use in
> my
> programs:
>
> FindLine:
> ;
> ; takes a line-number in ACC (0 - 31)
> ;
> ; returns line-start in ACC ($80, $86, $90, $96 etc.)
> ; and sets XBNK-register to required value (0 or 1)
> ;
> ; no other registers will be affected
> ;
> rol ; multiply with 8
> rol
> rol
> ;
> bn acc,3,.fl_l1
> sub #2 ; line start correction, if uneven line
> number
> .fl_l1:
> mov #0,xbnk ; default: bank 0
> bn acc,7,.fl_l2
> inc xbnk ; select bank 1 if line-number was 16 or
> more
> .fl_l2:
> or #%10000000 ; add $80 (start of XRAM)
> ;
> ret
>
> Hope this helps.
>
> Bye
>
>
> Alessandro
> ---
> You get what anyone gets. You get a lifetime.
>


=====
Later ...

rednuht@...
-+-..=|<[{(_"!"_)}]>|=..-+-


__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/



Tue Aug 8, 2000 12:06 pm

rednuht@...
Send Email Send Email

Forward
Message #455 of 1156 |
Expand Messages Author Sort by Date

WOW! I had to get my calculator out and manually try your routine a couple of times and it really works!. it just so damm short, was it the logicaly the 1st...
rednuht
rednuht@...
Send Email
Aug 8, 2000
12:06 pm

... [snip] ... I don't know what routine I first used to determine the screen line addresses... it all mostly depends on what works best with the particular ...
tyro@...
Send Email
Aug 20, 2000
10:03 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help