Amstrad Plus Forum Index

Amstrad Plus
Découverte de la gamme Old et Plus des Cpc d'Amstrad.

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[Solved]Copy from External banks (128Kb+...) to ASIC RAM possible?

 
Post new topic   Reply to topic    Amstrad Plus Forum Index -> Programmation Cpc -> Asic
Previous topic :: Next topic  
Author Message
fgbrain


Offline

Joined: 01 Jun 2015
Posts: 17
Localisation: Greece
Masculin
Point(s): 1
Moyenne de points: 0.06

PostPosted: Sun 6 Nov - 18:11 (2016)    Post subject: [Solved]Copy from External banks (128Kb+...) to ASIC RAM possible? Reply with quote

Hi,

I want to copy directly from any external RAM  say (C4,C5,C6,C7.....) to ASIC RAM  directly. Without having first to copy to main ram (C0). I dont have any spare space left there anyway!

Is is possible?

Say I have one 16kb-bank full with tilesets at C4 and another one full of sprites at C5.
Can I copy directly sprites from C5 to ASIC sprite RAM??

All ext.RAM is paged at &4000-&7FFF just like ASIC RAM!!!
Moreover, I think that when I enable ASIC RAM the bank switching resets..
OR is there something else I miss???? Embarassed


Back to top
Contenu Sponsorisé






PostPosted: Today at 23:04 (2020)    Post subject: [Solved]Copy from External banks (128Kb+...) to ASIC RAM possible?

Back to top
roudoudou


Offline

Joined: 14 Jul 2016
Posts: 427
Localisation: LYON
Masculin
Point(s): 46
Moyenne de points: 0.11

PostPosted: Sun 6 Nov - 22:01 (2016)    Post subject: [Solved]Copy from External banks (128Kb+...) to ASIC RAM possible? Reply with quote

There is two methods (i know)


ld bc,#7FC2 ; switch all extended bank so you can copy from "C4/C6/C7" to #4000, but you need to have a "switch" program in the extension who makes the copy
out (c),c





ld bc,#7FC3 ; bank "C7" switch in #C000 so you can copy from #C000 to #4000
out (c),c


be aware, with asic off, any read/write to #4000 leads to first 64k #C000 bank


Back to top
fgbrain


Offline

Joined: 01 Jun 2015
Posts: 17
Localisation: Greece
Masculin
Point(s): 1
Moyenne de points: 0.06

PostPosted: Sun 6 Nov - 22:10 (2016)    Post subject: [Solved]Copy from External banks (128Kb+...) to ASIC RAM possible? Reply with quote

so that means that bank switching still works -apart from &4000-&7fff where ASIC is, right??

I think I tried this in the past and it didnt work..

Anyway, thanks roudoudou for fast answer. I 'll try it out..


Back to top
roudoudou


Offline

Joined: 14 Jul 2016
Posts: 427
Localisation: LYON
Masculin
Point(s): 46
Moyenne de points: 0.11

PostPosted: Sun 6 Nov - 22:20 (2016)    Post subject: [Solved]Copy from External banks (128Kb+...) to ASIC RAM possible? Reply with quote

do you have an external memory expansion?

Back to top
roudoudou


Offline

Joined: 14 Jul 2016
Posts: 427
Localisation: LYON
Masculin
Point(s): 46
Moyenne de points: 0.11

PostPosted: Sun 6 Nov - 22:25 (2016)    Post subject: [Solved]Copy from External banks (128Kb+...) to ASIC RAM possible? Reply with quote

oups, i checked my aintro2 source where i used this one!


it's C1, not C3!!!!!


And if you have a memory expansion, you need to switch Asic ON first, then switch memory configuration




see Arnold doc http://cpctech.cpc-live.com/docs/rampage.html


Back to top
Ast
Administrateur

Offline

Joined: 05 Sep 2014
Posts: 2,977
Masculin
Point(s): 390
Moyenne de points: 0.13

PostPosted: Mon 7 Nov - 00:43 (2016)    Post subject: [Solved]Copy from External banks (128Kb+...) to ASIC RAM possible? Reply with quote

As Roudoudou said, there is only two methods...


The first one, #c1 connects bank 7 in #c000
The second one #c2 displays second banks instead of first one...
So all banks c4 to c7 are mapped as 0000 to #ffff and become the principal ones.


Another way is to use Cartridge Roms... in RMR, all cartridges roms from #80 to #ff can be mapped into #c000...
In RMR2 mode, you could choice, for the 8 first cartridges roms (#80-#87), where you 'll want them to be mapped (0000-#4000-#8000)... Asic could be connected or not for the plage in #4000.


Hope it could help you to find your way.
_________________
Ast/iMP4CT

"Par le pouvoir du crâne ancestral...."


Back to top
Display posts from previous:   
Post new topic   Reply to topic    Amstrad Plus Forum Index -> Programmation Cpc -> Asic All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  

Index | Administration Panel | Create a forum | Free support forum | Free forums directory | Report a violation | Cookies | Charte | Conditions générales d'utilisation
Powered by phpBB © 2001, 2005 phpBB Group