Source code generation

What is Arkos Tracker? Forums Arkos Tracker forum Feature requests Source code generation

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #30203
    Malban
    Participant

    Hi,
    a very small feature request.
    The generated AKG source code contains for the pitches a reference to “$”, e.g.:

    HocusPocus_Pitch1
    	db 3	; The speed.
    
    	dw 0
    HocusPocus_DisarkWordForceReference13
    	dw $ + 2
    	dw 0
    HocusPocus_DisarkWordForceReference14
    	dw $ + 2
    	dw -1
    HocusPocus_DisarkWordForceReference15
    	dw $ + 2
    	dw -2
    HocusPocus_DisarkWordForceReference16
    	dw HocusPocus_Pitch1 + 4 * 0 + 1

    Since you label each line anyway, my wish would be to generate instead:

    HocusPocus_Pitch1
    	db 3	; The speed.
    
    	dw 0
    HocusPocus_DisarkWordForceReference13
    	dw HocusPocus_DisarkWordForceReference13 + 2
    	dw 0
    HocusPocus_DisarkWordForceReference14
    	dw HocusPocus_DisarkWordForceReference14 + 2
    	dw -1
    HocusPocus_DisarkWordForceReference15
    	dw HocusPocus_DisarkWordForceReference15 + 2
    	dw -2
    HocusPocus_DisarkWordForceReference16
    	dw HocusPocus_Pitch1 + 4 * 0 + 1

    Which should generate exactly the same code, with a few ascii bytes more.

    Reason behind the request – my 6809 assembler is able to read the complete generated source code and compile it correct, except of the “$”.

    In 6809 assemblers (at least none that I know of) the “$” is not used as a “special label” (address of current line).
    “We” have a similar special label, the “*”, but it is different in the way, that it denotes the address of the start of the NEXT instruction.

    Thx & regards

    Malban

    #30205
    Targhan
    Keymaster

    Hi,

    This is doable, however, I don’t plan on making a release before a while, unless it is critical (because I’m working on big plan for the next release and don’t want to be diverted from it 🙂 )!

    However, I have a solution for you: You can use the embedded software called Disark (in the “tools” folder), which converts source into another. For example, you can convert the original RASM source into SDCC, or… Rasm! It will remove all the “strange” stuff like $ and macros.

    Everything is here:

    Using a song in production, using any assembler

    But for the example:
    rasm Music_HocusPocus.asm -o UniversalFiles -s -sl -sq
    Disark UniversalFiles.bin output.asm –symbolFile UniversalFiles.sym

    The “output.asm” will be the source in a format that will be fine to you! Tell me if this works.

    NOTE: I’ve just noticed WordPress converted “–” to “-“!! So watch out for reading the tutorials, especially in the command lines explanation. I’m trying to correct this… Damn WordPress.

    #30213
    Targhan
    Keymaster

    (corrected the — bug in wordpress)…

    #30214
    Malban
    Participant

    Yea, it’s not high priority – more a convenience kind of thing. It’d still be nice if you changed it some time in the future.

    I’ll test Diskark, but would be prefer not to have to invoke an additional tool :-).

    Will your “next big thing” change the structure of AKG?

    Cheers

    Malban

    #30215
    Targhan
    Keymaster

    >Will your “next big thing” change the structure of AKG?

    No, the players are working and were a hell of a work, so I consider them done. They won’t change!

    I’ll add your request to my TODO list.

    #30228
    Targhan
    Keymaster

    The feature is done, but I’d like your approval. What system are you on (and 32 or 64 bits)?

    #30229
    Malban
    Participant

    For the time being its Windows64, in the long run it is Mac 🙂

    Cheers

    Malban

    #30230
    Targhan
    Keymaster

    I’ve made you a Debug (thus, slower) build for Windows:
    http://www.julien-nevo.com/arkostracker/release/windows/ArkosTracker2Malban.zip

    Please try the AKG export and see if the generated source fits you. If ok, I’ll include this to the “real” release a bit later.

    Thanks!

    #30231
    Malban
    Participant

    Tried it.

    Works for me! Thx!

    #30233
    Targhan
    Keymaster

    Awesome! Thanks for testing.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.