News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

Bank switching - instant?

Started by shaymanjohn, 13:49, 27 May 20

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

shaymanjohn

When switching memory banks (on a 6128) does the newly selected bank become immediately available, or does it take some time to switch in (maybe end of hblank, or vblank, or some other time)?


This is the code I'm using to switch banks:


ld b, 0x7f
ld c, 0xc4 ; this value is the scheme
out (c), c
... use data from new bank ...


Thanks




GUNHED

Quote from: shaymanjohn on 13:49, 27 May 20
When switching memory banks (on a 6128) does the newly selected bank become immediately available,
Yes, it does.

Quote from: shaymanjohn on 13:49, 27 May 20This is the code I'm using to switch banks:
ld b, 0x7f
ld c, 0xc4 ; this value is the scheme
out (c), c
... use data from new bank ...
Thanks

It's more quick and smaller to use:
LD BC,&7FC4
OUT (C),C



http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

shaymanjohn

#2
Ah yes!


Thanks GUNHED  :) 

Powered by SMFPacks Menu Editor Mod