Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mc1000/gem1000 version of zxbasic-compiler is on the way! :)
#1
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.! Smile )
Reply
#2
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! Smile
Reply
#3
Hmmm. You're directly patching the .bin. This is the hardest way, IMHO Confusedhock:
Anyway, the compiler generates a push/pop sequence for the ZX Spectrum (it's harmless on other architectures, but should be removed, I think).
Reply
#4
First successful attempt at TLOAD'ing a machine code program assembled by myself. (In Portuguese.)

http://ensjo.blogspot.com.br/2012/08/do-...tload.html
Reply
#5
boriel Wrote:Hmmm. You're directly patching the .bin. This is the hardest way, IMHO Confusedhock:

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! Smile

and the patching part can be considered and taken as "documentation" about how is this getting successfully done! Smile

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!.... Big Grin ) - that "fine-tunning" comes later, i think! Smile
Reply
#6
some progress: <!-- m --><a class="postlink" href="https://www.facebook.com/groups/mc1000/permalink/432080076843517/">https://www.facebook.com/groups/mc1000/ ... 076843517/</a><!-- m -->
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)