Logicielsmoto.com

Nous sommes le 19 Mar 2024, 04:29

Heures au format UTC + 1 heure




Poster un nouveau sujet Répondre au sujet  [ 3 messages ] 
Auteur Message
MessagePosté: 15 Déc 2016, 16:30 
Hors ligne

Inscription: 04 Jan 2013, 13:18
Messages: 75
Hello

I have this MO6 program that works on emulators(DCMOTO and MESS) but not on the real machine:

I load a program to bank5 that will be used in the rom banking area (I have formatted the data to be used from $b000-$efff as the ram bank data will not be shown sequentially there)

The program that calls the routine at $b004 is:

Code:
            orcc   #$50    ;Disable IRQ and FIRQ

            lda #$52    ;%01010010 RAM commutation active
            sta $a7e7
      
            lda #$65   ;%01100101  write enable and ram enable -> bank 5 at $b000
            sta $a7e6
            
            lda #$02
            sta $a7e5   ;bank 2 at $6000

            jmp $b004   


What might be wrong here? thanks


Haut
 Profil  
Répondre en citant le message  
MessagePosté: 17 Déc 2016, 23:18 
Hors ligne

Inscription: 27 Juin 2006, 19:44
Messages: 1058
Localisation: France (24)
Sorry to give you an answer so late.

The #$52 value is not appropriate to activate the capability to switch RAM in direct mode. I think you should do instead :

Code:
            orcc   #$50    ;Disable IRQ and FIRQ
; Activate direct RAM switch mode
            lda $2081    ; Read read/write image of commutation register
            ora #$10     ; Activate direct RAM switch bit
            sta $2081    ; Update read/write image of commutation register
            sta $a7e7    ; Update commutation register
; Switch cartridge bank
            lda #$65   ;%01100101  write enable and ram enable -> bank 5 at $b000
            sta $a7e6
; Switch RAM bank
            lda #$02
            sta $a7e5   ;bank 2 at $6000

            jmp $b004   

_________________
Marche a suivre pour s'inscrire sur ce forum
Do not forget to contact one of the administrators to validate your registration.
Le site des démos de Puls
L'émulateur Teo


Haut
 Profil  
Répondre en citant le message  
MessagePosté: 18 Déc 2016, 19:05 
Hors ligne

Inscription: 04 Jan 2013, 13:18
Messages: 75
Hi Prehisto thank you for that I will try it out asap. :)


Haut
 Profil  
Répondre en citant le message  
Afficher les messages postés depuis:  Trier par  
Poster un nouveau sujet Répondre au sujet  [ 3 messages ] 

Heures au format UTC + 1 heure


Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité


Vous ne pouvez pas poster de nouveaux sujets
Vous ne pouvez pas répondre aux sujets
Vous ne pouvez pas éditer vos messages
Vous ne pouvez pas supprimer vos messages
Vous ne pouvez pas joindre des fichiers

Rechercher:
Aller à:  
cron
Développé par phpBB® Forum Software © phpBB Group
Traduction par phpBB-fr.com