TK. Posted January 20, 2008 Report Share Posted January 20, 2008 In order to get rid of the windows propritary MPASM assembler, I started to migrate MIOS and most of the applications to the GPUTILS toolchain. This freeware is available for all major operating systems (including Windows/Linux/Mac OS), and therefore should allow everbody to customize and rebuild an application without Windows installation.The main reason why this important step had not been done in the last years was the incompatibility of the GPASM macro preprocessor, which is less powerful than MPASM. Especially my beloved IFSET and IFCLR macros are not supported. As a compromise I'm using simple versions of this macro now (e.g. BRA_IFSET, BRA_IFCLR, CALL_IFSET, etc...), and converted the existing source codes to this new scheme with a perl script, and adapted the remaining cases (which were not covered by the automation) manually.These changes are finished now, and instead of providing the quick&dirty conversion script for Unix users, I decided to maintain all existing applications with the new "GPUTILS" style in future.For MIDIbox end-users this change is less dramatical when it sounds above - GPUTILS can be easily installed, thereafter an application can be rebuilt by typing "make" in the command shell (or windows users: by double-clicking the make.bat file). It's simpler and requires less tools than ever before! :)Resources:MIOS Download page (click on the refresh button of your browser if you don't see the new packages): http://www.ucapps.de/mios_download.htmlGPASM Guide: http://www.ucapps.de/howto_tools_gpasm.htmlFollowing projects have already been adapted - the remaining packages will be migrated soon!All of them got a new version number. Only exception: the mios source code package (to avoid additional effort at my side...)change_id_v1_9d.zipmagic_midi_delay_v1_5a.zipmbhp_tv_v1_3a.zipmidi_benchmark_v1a.zipmidibox64_v2_4a.zipmidibox64e_v2_2a.zipmidibox_cv_v1_2a.zipmidibox_fm_v1_1b.zipmidibox_lc_v1_6b.zipmidibox_mf_v2_2a.zipmidibox_seq_v2_4d.zipmidibox_seq_v3_2b.zipmidibox_sid_v1_7303c.zipmidibox_sid_v2_0_rc17.zipmidibox_tc_v1_7a.zipmidimon_v2_0a.zipmidio128_v2_1e.zipmios_v1_9f_src.zipskeleton_v1_9a.zipBest Regards, Thorsten./Edit: I uploaded all .zip packages again, only change: "make distclean" Makefile rule replaced by "make cleanall", since the name "distclean" could be misleading. Link to comment Share on other sites More sharing options...
stryd_one Posted January 21, 2008 Report Share Posted January 21, 2008 That's great news thanks TK! :) I knew someone would write that perl script eventually hahahaha Link to comment Share on other sites More sharing options...
bosone Posted January 21, 2008 Report Share Posted January 21, 2008 this means that MPASM could not be used anymore for newer developments or that we can ALSO use the new GPUTILS? Link to comment Share on other sites More sharing options...
TK. Posted January 21, 2008 Author Report Share Posted January 21, 2008 Hi Matteo,this means that MPASM could not be used anymore for newer developments or that we can ALSO use the new GPUTILS?There is no need to use MPASM anymore, and it's strongly recommented to publish applications GPASM-compatible in future, so that even Linux and Mac OS users are able to customize an application, and to create a new .hex file. Thats the reason, why I'm planning to re-release all my own applications, which isn't so much effort at all.GPASM is slightly incompatible to MPASM (macro expansion), MPASM is slightly incompatible to GPASM (cannot handle files w/o DOS-style linefeeds, cannot handle filepathes longer than 63 characters). But at the end GPASM brings us more advantages than MPASM. If somebody encounters issues with the usage of GPASM, or with the conversion of an old, selfwritten application, just ask in the Assembler programming section for help. I'm willing to support you during the migration, I could also do this for you (it takes ca. 1 minute) if desired.Best Regards, Thorsten. Link to comment Share on other sites More sharing options...
sineSurfer Posted January 22, 2008 Report Share Posted January 22, 2008 TK: but you still can use MPASM with the updated sources? I have a crappy Pc on a corner just for this kind of things, easier than installing the other stuff on Mac ;D Link to comment Share on other sites More sharing options...
TK. Posted January 22, 2008 Author Report Share Posted January 22, 2008 You don't really know what is going on, hm? GPUTILS is a 470k package and easier to install than MPLAB. Yes, you can still use MPASM, some files have to be converted so that they contain the DOS style linefeeds again. You also need to specify the target processor explicitely now, and sometimes you have to add an include path.If you don't know how to do this, just click on this link: https://sourceforge.net/project/showfiles.php?group_id=41924, and download the gputils-win32 package. It really doesn't hurt!Best Regards, Thorsten. Link to comment Share on other sites More sharing options...
sineSurfer Posted January 22, 2008 Report Share Posted January 22, 2008 r u sure it won't bite me? ;DI'll try GPUTILS both on Mac and Pc then;) Link to comment Share on other sites More sharing options...
cimo Posted January 22, 2008 Report Share Posted January 22, 2008 ...the microchip suite was the only reason why i had a double boot x86, time to clean up the hard drive!i haven t tried gputils yet to build asm code (just the little _asm code in my first C application, osx) but i am looking forward to, there is a MBLC+MB64 on the bench soon.thanks for supporting free multiplatform software Link to comment Share on other sites More sharing options...
Wilba Posted January 22, 2008 Report Share Posted January 22, 2008 Install GPUTILS... double-click make.bat... Too easy! Long pathnames! Finally! Hooray!Uninstalling MBLAB IDE now... ;) Link to comment Share on other sites More sharing options...
cimo Posted January 22, 2008 Report Share Posted January 22, 2008 eheh long pathnames, C:\ adios! Link to comment Share on other sites More sharing options...
TheAncientOne Posted January 22, 2008 Report Share Posted January 22, 2008 May I add a small suggestion for an alternative text editor for Windows. I've been using the UK written TextPad, for a long time now. It's a bit cheaper than UltraEdit, and has a lot of community support for it's syntax highlighting. (there are lots of syntax files available for free download). The evaluation version does no more than 'nag' on startup, otherwise you get the full version. I'm not saying it's in any way better than UltraEdit and certainly not Emacs, but it's one I got used to, and does a good job for me.There is an old story that in the full expert version of Emacs there is a 'make universe' command, (they say Emacs is the editor of the gods). Link to comment Share on other sites More sharing options...
cimo Posted January 22, 2008 Report Share Posted January 22, 2008 .. i use smultron on osx (when i don t use xcode) it just does the job and it is free!.. what would you guys advise for linux? simone Link to comment Share on other sites More sharing options...
TK. Posted January 22, 2008 Author Report Share Posted January 22, 2008 Thanks for the input, Mike - I added the link to the GPASM page.The remaining assembly based applications have been re-released now:j5_din_v1_3a.zipj5_dout_v1_3c.zipjitter_mon_v1_3a.ziplcd7_clcd_v1_9a.ziplcd7_iic_v1_9a.ziplcd7_ks0108_v1_9a.ziplcd7_pcd8544_v1_9a.ziplcd7_t6963c_h_v1_9a.ziplcd7_t6963c_v_v1_9a.ziplcd_benchmark_v1a.ziplcd_interconnection_test_v1a.zipled_digits1_v1_3a.zipled_digits2_v1_3a.zipled_digits_clk_v1_3a.zipled_digits_mtc_v1_3a.zipmbfm_interconnection_test_v1a.zipmbfm_testtone_v1a.zipmbsid_interconnection_test_v1a.zipmbsid_led_matrix_test_v1a.zipmbsid_testtone_v3a.zipmf_calibration_v1_4a.zipmf_direct_control_v1_1a.ziprevision_id_v1a.zipsm_example1_v2a.zipsm_example2_v1a.zipsrio_interconnection_test_v1a.zipAnd there is a new MBSEQ V3 version with a fix for J5 gate outputs, and support for AOUT_NG module:midibox_seq_v3_2c.zipBest Regards, Thorsten. Link to comment Share on other sites More sharing options...
stryd_one Posted January 22, 2008 Report Share Posted January 22, 2008 Rock on TK :)May I add a small suggestion for an alternative text editor for Windows. I've been using the UK written TextPad, for a long time now. It's a bit cheaper than UltraEdit, and has a lot of community support for it's syntax highlighting. This may be counterproductive but FWIW I'm a big fan of Notepad++ .... I actually had the credit card out, ready to buy UE, and decided I'd better try to find a freebie before I coughed up, and this is the perfect candidate. Add the explorer plugin (which I think actually comes with it now) and compare plugin, and it does everything that UE does, but is open source and free. Similarly to TP, it has a configurable highlighter and you can share your highlighting files. C and ASM come standard. There's also output window and debugger plugins so you could compile and debug your MIOS app from within the GUI if you want (I haven't documented how to do this, as the codeblocks tutorial on the wiki has it covered) and it does search/replace with regexps and all kind of stuff that even UE won't do. Recommended. Link to comment Share on other sites More sharing options...
Wilba Posted January 22, 2008 Report Share Posted January 22, 2008 Thanks stryd... the Notepad++ homepage has this very interesting link:Sign a petition against Microsoft's Office OpenXML becoming an ISO standardwhich of course I did. ;) Link to comment Share on other sites More sharing options...
ptitjes Posted January 23, 2008 Report Share Posted January 23, 2008 Hi Simone,.. what would you guys advise for linux?Surely Scite! This one is a really cool free software editor! http://www.scintilla.org/SciTE.htmlIt has all the syntax highlighting you can imagine, and i think you can easily add some! And this one also runs on Windows...By the way, I can only tell people to vote against Micro$oft way to create what they call "standards"...Best regards, Didier. Link to comment Share on other sites More sharing options...
TheAncientOne Posted January 23, 2008 Report Share Posted January 23, 2008 I've just had a classic example of Finagles law ("The Peversity of the universe tends to a maximium"). In my last batch of scrap, I have just discovered a fully working Microchip MPLAB ICD2 programmer/in circuit debugger. Which of course runs from MPASM....... Link to comment Share on other sites More sharing options...
TheAncientOne Posted February 1, 2008 Report Share Posted February 1, 2008 Emacs cartoon - kind of appropriate:http://xkcd.com/378/Enjoy Link to comment Share on other sites More sharing options...
audioworld Posted February 4, 2008 Report Share Posted February 4, 2008 oh no/yes: just as i did my frist baby steps with MPASM (and discovered I have to move everything to C:/...)!!!however, the words "platform-independet" and "open-source" always give me a warm feeling inside, so hurray to GPUTILS and thank you TK.regarding the Editor:i am just an amateur coder, but want to point the windows users to PSPAD:http://www.pspad.com/en/(freeware). Link to comment Share on other sites More sharing options...
Recommended Posts