Logicielsmoto.com

Nous sommes le 29 Mar 2024, 00:45

Heures au format UTC + 1 heure




Poster un nouveau sujet Répondre au sujet  [ 2 messages ] 
Auteur Message
 Sujet du message: [C6809] Help with scalability
MessagePosté: 22 Oct 2018, 00:00 
Hors ligne

Inscription: 08 Oct 2018, 17:24
Messages: 18
Hi everyone,
i need a little help to handle the assets of my project. Instead of having a lot of FCB in the middle of the code, i'd like to include a binary sequence to load at specific memory address. So instead of


Code:
THMIDLE
        FCB $CC,$00,$0C,$CC .1A
        FCB $CC,$0F,$00,$CC .2A
        FCB $CC,$FF,$00,$CC .3A
        ...


I would use a file containing CC000CCCCC0F00.. and so on. Now i should accomplish this with a INCBIN, and on the MacroAssembler 3.6 was possibile to do this:

Code:
         ORG $A000
         FCB $01,$02,$03,$04,$05,$06,$07,$08
         END


Assemble -> S ASSET.BIN A000 A007 to get a file with 01 02 03 04 05 06 07 08 to include at A000

I tried something similar on C689, like

Code:
(main) TEST
           INCBIN FOO
           END

(include) FOO.BIN
           
           ORG &A000
           ...


But it throws a "FOO.BIN: File Not Found" exception.

Thank you so much :)


Haut
 Profil  
Répondre en citant le message  
MessagePosté: 25 Oct 2018, 21:25 
Hors ligne

Inscription: 21 Aoû 2006, 09:06
Messages: 1802
Localisation: Brest
INCBIN is intended to include BIN file that are present in the windows directory, not in the ASS file. Therefore, I'd use a standard INCLUD in place of INCBIN to do what you intended to do. It'll work fine since there are no memory issues with c6809.

_________________
Good morning, that's a nice Tnetennba


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

Heures au format UTC + 1 heure


Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 61 invités


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