[C6809] Help with scalability
Page 1 sur 1

Auteur:  GarlandRaven [ 22 Oct 2018, 00:00 ]
Sujet du message:  [C6809] Help with scalability

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

        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:

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

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

(main) TEST
           INCBIN FOO

(include) FOO.BIN
           ORG &A000

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

Thank you so much :)

Auteur:  Samuel Devulder [ 25 Oct 2018, 21:25 ]
Sujet du message:  Re: [C6809] Help with scalability

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.

Page 1 sur 1 Heures au format UTC + 1 heure
Powered by phpBB® Forum Software © phpBB Group