1. Ralf, BeeBee, anybody--- HELP, PLEASE!

Ralf, BeeBee, anybody--- HELP, PLEASE!

Last week you posted a response to a question from Noah concerning the 64Kb
graphics memory, and how to get around that roadblock in SVGA modes by
'bank switching'.  Makes sense so far...oops, I lied.  Here's what I
fingered out; can somebody fill in the gaps please?

In mode 19, doing a

        se_mem_copy(1,#A0000,#A0000+32160,160,100,160,160)

copies the top-left quarter of the screen to the bottom right (I stole that
out of the source code).  O.K. so far.

Now let's go to mode 259:

        se_mem_copy(1,#A0000,#A0000+400,400,25,400,400)

copies the top 25 lines from the left half of the screen to the right. I
got that.  But there's no bank switching goin' on here.  That where you
guys lost me because if I want to copy the top-left quarter of the screen
to the bottom-right just like in mode 19,

        se_mem_copy(1,#A0000,#A0000+120400,400,300,400,400)

ain't gonna work, and that's where this fancy-pants 'bank switching' must
come in huh? So, how do I access anything other than the first 64Kb of the
screen?

Could somebody write some quick and dirty code that copies the top left
400x300
square of mode 259 to the bottom right?  If ya can get me that far, I think
I can finger out the rest. (If you could throw in some comments, we'll just
consider it an early Christmas present).

mmmkay-thanks-bye...

Deuce (bjackson at printinginc.com)

new topic     » topic index » view message » categorize

2. Re: Ralf, BeeBee, anybody--- HELP, PLEASE!

>You are using se_mem_copy () by Micheal Bolin.
>If you get the latest version, it will do all the bank magic *for* you ..
>blink
>
>You can find it at the Archives of Rds' site.

    >Ralf

I got it yesterday.  But what I'm really asking is, how do I copy the top left
64K to the bottom right 64K, because this won't work:

        se_mem_copy(1,#A0000,#105900,256,256,800-256,800-256)

If I knew what memory address to set DEST to, it would be no problem at all...

Deuce
bjackson at printinginc.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu