| CPC Rulez https://cpcrulez.fr/forum/ |
|
| Template project by Targhan/Arkos https://cpcrulez.fr/forum/viewtopic.php?f=4&t=3743 |
Page 1 sur 1 |
| Auteur : | hERMOL [ 16 Juin 2009, 04:05 ] |
| Sujet du message : | Template project by Targhan/Arkos |
Citer : Je me suis concocté un petit environnement de cross-développement bien sympathique, et comme je suis partageur, j'en parle ici. La plupart des codeurs utilisent l'assembleur de Winape, mais celui-ci à des limitations. Par exemple, pour ceux qui voudraient générer un DSK, un Sna a la volée, compiler des trucs, compacter des machins AVANT ou APRES l'assemblage, ce n'est pas faisable en une passe et d'une simple pression de touche. Et bien (ta daaa !) c'est maintenant possible. Attention, cela necessite l'utilisation de logiciels externes (mais gratuits), mais quel est le probleme ? Les modules de Winape ne sont pas des forcement modèles d'ergonomie ou de puissance. Tout est expliqué ici (en anglais) dans la bonne taverne de l'ami Grim : http://tavern.grimware.org/index.php Remarques et suggestions bienvenues ! Targhan/Arkos. Citer : Template project by Targhan/Arkos Just a little ASM file that will fill your screen with garbage. This template allows you to use Winape to load your SNApshots, using any external assembler and editor. But all these tools are linked by the simple pression of a key (compile !). Developping and testing are becoming really handy ! You will need all these freeware tools : - Winape (of course) http://www.winape.net - SJAsmPlus (http://sjasmplus.sourceforge.net) : a very good assembler, very powerful. Not 100% compatible Maxam though, but hey, it's time to move on ! - PSPad (http://www.pspad.com) : great text editor, including syntax highlight. - CPCTools : Ramlaid's tool will allow you to create the SNApshot (http://www.arkos.cpcscene.com, Tools section) - AutoHotKeys : A great tool to simulate mouse/keyboard actions following a script ! (http://www.autohotkey.com) Warning, due to limitation of the scripts, two paths are absolute and must be corrected before you run the project : Change the WINAPE Path and SNA Path in the "Test.ahk" file in the "Scripts" folder. You must also change the Default Directories in PSPad : Menu "Projects", "Project Settings", in both "General" and "Compiler" to the root of your project (= where the PPR file is). Then load "Template Project.ppr" in PSPad, compile it and here you go ! It assembles your program, loads Winape, and injects the SNA into the memory ! Here is how are organised the files : - Sources folder : Where are the ASM files to assemble. Also, the Symbol tables will be created here. - Generated folder : Where your binaries are generated. - Scripts folder : The "heart" of the compilation : - MakeFile.bat : File launched by your text editor when your press the "Compile" button. It runs the assembler, the snapshot creator, and injects it into Winape. - Snapshot.cfg : Scripts used by the CreateSnapshot tool. Inside, you can set the CRTC, Gate Array values etc, files to load into your Snapshot. - Test.ahk : Script used by AutoHotKey, the tool that simulates Mouse/Keyboard entries. This script opens Winape if necessary, "press F5", and "Copy/Paste" the Snapshot name, then "Press Enter". Feel free to modify the scripts as you wish to make them fulfill your needs, then share them with us ! Have fun, Targhan/Arkos. url : http://tavern.grimware.org/index.php http://tavern.grimware.org/viewtopic.php?id=9 |
|
| Page 1 sur 1 | Le fuseau horaire est UTC+1 heure |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|