![]() |
mc1000/gem1000 version of zxbasic-compiler is on the way! :) - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Wishlist (https://www.boriel.com/forum/forumdisplay.php?fid=14) +---- Thread: mc1000/gem1000 version of zxbasic-compiler is on the way! :) (/showthread.php?tid=489) |
mc1000/gem1000 version of zxbasic-compiler is on the way! :) - nitrofurano - 08-15-2012 well, mc1000/gem1000 is a pretty rare 8bit hardware, but its zxbasic-compiler version is on the way: <!-- m --><a class="postlink" href="https://www.facebook.com/groups/mc1000/">https://www.facebook.com/groups/mc1000/</a><!-- m --> (messages are in portuguese, but people could use translators for that, and since the conversation is mostly technical there, it seems to be not that hard to understand) btw, some information of it is being collected here: <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:GEM-1000">http://www.boriel.com/wiki/en/index.php ... C:GEM-1000</a><!-- m --> (an interesting fact of this machine is it uses the same display processor as Dragon32/Coco2 (a good start for these machines for when a 6809/6502 version of zxbasic-compiler appears) , the same sound processor as msx, nes and sms, and the same z80 processor as zx-spectrum and etc.! ![]() Re: mc1000/gem1000 version of zxbasic-compiler is on the way - nitrofurano - 08-15-2012 i'm starting with this: <!-- m --><a class="postlink" href="http://pastebin.com/sTkmg61s">http://pastebin.com/sTkmg61s</a><!-- m --> ( example01.sh ) <!-- m --><a class="postlink" href="http://pastebin.com/4K8kQ1sT">http://pastebin.com/4K8kQ1sT</a><!-- m --> (createmc1000header.py) <!-- m --><a class="postlink" href="http://pastebin.com/zEbBamQN">http://pastebin.com/zEbBamQN</a><!-- m --> ( example01.bas ) later i'll try to create some libraries for that - and if successful, consider mc1000/gem1000 version of zxbasic-compiler started as well! ![]() Re: mc1000/gem1000 version of zxbasic-compiler is on the way - boriel - 08-15-2012 Hmmm. You're directly patching the .bin. This is the hardest way, IMHO ![]() Anyway, the compiler generates a push/pop sequence for the ZX Spectrum (it's harmless on other architectures, but should be removed, I think). Re: mc1000/gem1000 version of zxbasic-compiler is on the way - Ensjo - 08-16-2012 First successful attempt at TLOAD'ing a machine code program assembled by myself. (In Portuguese.) http://ensjo.blogspot.com.br/2012/08/do-assembly-ao-tload.html Re: mc1000/gem1000 version of zxbasic-compiler is on the way - nitrofurano - 08-16-2012 boriel Wrote:Hmmm. You're directly patching the .bin. This is the hardest way, IMHO but it works! \o/ - see <!-- m --><a class="postlink" href="https://www.facebook.com/groups/mc1000/permalink/428984207153104/">https://www.facebook.com/groups/mc1000/ ... 207153104/</a><!-- m --> - it was successful, and consider that zxbasic-compiler can officially create mc1000/gem1000 stuff! \o/ - but, any help you know for improving it would be much better! ![]() and the patching part can be considered and taken as "documentation" about how is this getting successfully done! ![]() Quote:Anyway, the compiler generates a push/pop sequence for the ZX Spectrum (it's harmless on other architectures, but should be removed, I think). well, i struggle on that a lot - btw, i see that push/pop is very used on 'sub fastcall' and 'function fastcall', and i have no idea how to be not using that so!... but btw, the most important is that is working awesomelly fine! (and i have no beers in the freezer for commemorating, damn!.... ![]() ![]() Re: mc1000/gem1000 version of zxbasic-compiler is on the way - nitrofurano - 08-24-2012 some progress: <!-- m --><a class="postlink" href="https://www.facebook.com/groups/mc1000/permalink/432080076843517/">https://www.facebook.com/groups/mc1000/ ... 076843517/</a><!-- m --> |