What is Arkos Tracker? › Forums › Arkos Tracker forum › Feature requests › Source code generation
- This topic has 9 replies, 2 voices, and was last updated 4 years, 1 month ago by Targhan.
-
AuthorPosts
-
October 1, 2020 at 9:09 pm #30203MalbanParticipant
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
October 2, 2020 at 8:12 am #30205TarghanKeymasterHi,
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:
But for the example:
rasm Music_HocusPocus.asm -o UniversalFiles -s -sl -sq
Disark UniversalFiles.bin output.asm –symbolFile UniversalFiles.symThe “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.
October 2, 2020 at 8:27 am #30213TarghanKeymaster(corrected the — bug in wordpress)…
October 2, 2020 at 8:31 am #30214MalbanParticipantYea, 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
October 3, 2020 at 8:08 am #30215TarghanKeymaster>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.
October 9, 2020 at 2:14 pm #30228TarghanKeymasterThe feature is done, but I’d like your approval. What system are you on (and 32 or 64 bits)?
October 9, 2020 at 5:30 pm #30229MalbanParticipantFor the time being its Windows64, in the long run it is Mac 🙂
Cheers
Malban
October 10, 2020 at 10:48 am #30230TarghanKeymasterI’ve made you a Debug (thus, slower) build for Windows:
http://www.julien-nevo.com/arkostracker/release/windows/ArkosTracker2Malban.zipPlease 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!
October 10, 2020 at 12:37 pm #30231MalbanParticipantTried it.
Works for me! Thx!
October 11, 2020 at 10:13 am #30233TarghanKeymasterAwesome! Thanks for testing.
-
AuthorPosts
- You must be logged in to reply to this topic.