FAQ  •  Register  •  Login

started msx version - help needed as well

<<

nitrofurano

Posts: 349

Joined: Thu Sep 29, 2011 12:44 pm

Location: Porto, Portugal

Post Thu Sep 20, 2012 2:06 pm

started msx version - help needed as well

also started the msx version as well - the .rom file is created fine, but i still don't know why the .rom file isn't running on OpenMSX - if someone know, please let me know! :)

for now, the idea is to support msx1, msx2, msx2+, and gfx9000 in the libraries - and having zxbasic-compiler as an useful tool for creating stuff like for contests like msxdev (for this year, the deadline is at november 30! :D )
Attachments
example01_msx_zxbasic.zip
(18.6 KiB) Downloaded 354 times
<<

nitrofurano

Posts: 349

Joined: Thu Sep 29, 2011 12:44 pm

Location: Porto, Portugal

Post Sat Sep 22, 2012 3:07 pm

Re: started msx version - help needed as well

i started to have something working, but i can't use 'sub fastcall' as i needed - with multiple parameters (for msxscreen, msxvpoke, etc.) - maybe because the stack? how can we fix this?
Attachments
example03_msx_zxbasic.zip
(19.25 KiB) Downloaded 287 times
<<

nitrofurano

Posts: 349

Joined: Thu Sep 29, 2011 12:44 pm

Location: Porto, Portugal

Post Sun Jun 09, 2013 10:38 pm

Re: started msx version - help needed as well

I think i found the problem - I think it is because i need to allocate the variables in a ram memory area, not the stack area

The problem on MSX is we have the memory arranged in 16k banks - for example, in this case, the rom file is between 0x4000 and 0x7FFF, and the variables needs to be in a different bank, like between 0xC000 and 0xFFFF , or between 0x8000 and 0xBFFF - how can we do this? (i can't find anything about at http://www.boriel.com/wiki/en/index.php ... ne_Options )

(thanks in advance...)
Attachments
example04_msx_zxbasic.zip
(20.59 KiB) Downloaded 270 times
<<

nitrofurano

Posts: 349

Joined: Thu Sep 29, 2011 12:44 pm

Location: Porto, Portugal

Post Sun Jun 09, 2013 11:01 pm

Re: started msx version - help needed as well

yes, it seems that "dim eee as uinteger at $E000" fixes the situation (something is working now! yes! \o/ ), but we need to declare and allocate each variable... :S
(interesting if we could do that automatically from a command line at zxb.py ... )
Attachments
example04b_msx_zxbasic.zip
(20.95 KiB) Downloaded 257 times
<<

LCD

Posts: 596

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Sun Jun 09, 2013 11:41 pm

Re: started msx version - help needed as well

nitrofurano wrote:yes, it seems that "dim eee as uinteger at $E000" fixes the situation (something is working now! yes! \o/ ), but we need to declare and allocate each variable... :S
(interesting if we could do that automatically from a command line at zxb.py ... )

AFAIK this is a planed feature for a future version of ZXBC. We told already about it some time ago.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
<<

nitrofurano

Posts: 349

Joined: Thu Sep 29, 2011 12:44 pm

Location: Porto, Portugal

Post Sun Jun 09, 2013 11:54 pm

Re: started msx version - help needed as well

LCD wrote:
nitrofurano wrote:yes, it seems that "dim eee as uinteger at $E000" fixes the situation (something is working now! yes! \o/ ), but we need to declare and allocate each variable... :S
(interesting if we could do that automatically from a command line at zxb.py ... )

AFAIK this is a planed feature for a future version of ZXBC. We told already about it some time ago.


yes, i knew this from long time - just like us, Boriel saw a huge potential on this cross-compiler being flexible and extensible - as i think you know, this approach is an (important, imho) experimental part for helping this development process, this planed feature for a future version as you are talking about

and since we can consider these Sega-SMS, CCE-MC1000 and MSX extensions as officially working, i imagine that on the future version we would see (specially if we can help on the development) some cleanup, and creating content for all these machines directly and simply, without needing further scripts, patches, and so on...

btw, LCD, did you try to run that .rom file from the attachment above (the "4b") on OpenMSX or any other MSX emulator? ;)
<<

LCD

Posts: 596

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Mon Jun 10, 2013 6:41 am

Re: started msx version - help needed as well

nitrofurano wrote:and since we can consider these Sega-SMS, CCE-MC1000 and MSX extensions as officially working, i imagine that on the future version we would see (specially if we can help on the development) some cleanup, and creating content for all these machines directly and simply, without needing further scripts, patches, and so on...

I hope so as I really want to make again some games for SAM Coupé.
nitrofurano wrote:btw, LCD, did you try to run that .rom file from the attachment above (the "4b") on OpenMSX or any other MSX emulator? ;)

Not yet, I have almost no free time at moment. You probably noticed that I currently sell tons of retro programming books on eBay:
http://www.ebay.at/sch/misutakurashiku/ ... 1023149181
That consumies almost all of my free time, apart from this, There is still lot to do in BorIDE.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Mon Jun 10, 2013 7:32 am

Re: started msx version - help needed as well

LCD wrote:Not yet, I have almost no free time at moment. You probably noticed that I currently sell tons of retro programming books on eBay:
http://www.ebay.at/sch/misutakurashiku/ ... 1023149181
That consumies almost all of my free time, apart from this, There is still lot to do in BorIDE.

Why are you selling them? :shock:
<<

nitrofurano

Posts: 349

Joined: Thu Sep 29, 2011 12:44 pm

Location: Porto, Portugal

Post Mon Jun 10, 2013 9:40 am

Re: started msx version - help needed as well

(sorry interrupting the conversation - i did a small and slow progress - i'm still struggling on palette and sprites)

yes, these books are historic, good old memories we have from this kind of books from 80's, a lot we learned from them...
Attachments
example04c_msx_zxbasic.zip
(23.55 KiB) Downloaded 267 times
<<

LCD

Posts: 596

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Mon Jun 10, 2013 9:58 am

Re: started msx version - help needed as well

boriel wrote:
LCD wrote:Not yet, I have almost no free time at moment. You probably noticed that I currently sell tons of retro programming books on eBay:
http://www.ebay.at/sch/misutakurashiku/ ... 1023149181
That consumies almost all of my free time, apart from this, There is still lot to do in BorIDE.

Why are you selling them? :shock:

I need Space and money, so I decided to reduce the amount of my books dramaticaly (mostly doublets or BASIC books, because I'm very good in BASIC now ;) ). Already 1000 books sold (Austria biggest retro-Books collection). Still over 1000 Books left here at my mothers place. Last week I sold 130 books and some othe stuff on eBay, mostly PASCAL and BASIC Books, some of them very rare (Thomson TO 7 book, etc). I'm a Messie and cannot even move. I overdid it a little while collecting every retro book I was able to purchase. :(
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
<<

slenkar

Posts: 282

Joined: Sun Feb 13, 2011 3:33 am

Location: Kentucky US, used to be Birmingham UK

Post Mon Jun 10, 2013 8:19 pm

Re: started msx version - help needed as well

Already 1000 books sold (Austria biggest retro-Books collection). Still over 1000 Books left here at my mothers place.


:shock:


I was watching a video on youtube from the eighties about how to program the speccy

https://www.youtube.com/watch?v=0Tt8TmVc2h8

So I understand the appeal of buying spectrum books.

I dont have any cos Im not a collector of anything.

It would be nice to have a rubber keyed spectrum in the house though
<<

slenkar

Posts: 282

Joined: Sun Feb 13, 2011 3:33 am

Location: Kentucky US, used to be Birmingham UK

Post Tue Jun 11, 2013 5:41 pm

Re: started msx version - help needed as well

nitrofurano wrote:(sorry interrupting the conversation - i did a small and slow progress - i'm still struggling on palette and sprites)

yes, these books are historic, good old memories we have from this kind of books from 80's, a lot we learned from them...


I downloaded the emulator and inserted the rom cartridge and got a colorful screen but I think it crashed.
The screen looked like it was filled with random dots.
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Wed Jun 12, 2013 8:15 am

Re: started msx version - help needed as well

Sorry, but at the moment I'm in a *hard* deadline, and won't be available until weekend. :?
I will try to examine it. Basically, I think (not sure 100%), most traditional compiler / assemblers address banks declaring .DATA, .STACK, .CODE "segments" and the like.
Z80 does not uses this addressing, but flat memory access.
Nice to find a generic solution, or to find out how other compiler /assemblers for MSX deals with this...
<<

nitrofurano

Posts: 349

Joined: Thu Sep 29, 2011 12:44 pm

Location: Porto, Portugal

Post Thu Jun 13, 2013 9:46 am

Re: started msx version - help needed as well

this update is about sprite moving (screenshot: http://img10.imageshack.us/img10/8990/2 ... 0x800s.png ) - and the code has some traces of msx2+ display modes use (commented in the code, not being used in the rom file) which will be improved soon
Attachments
example04e_msx_zxbasic_charmap.zip
(28.29 KiB) Downloaded 243 times
<<

slenkar

Posts: 282

Joined: Sun Feb 13, 2011 3:33 am

Location: Kentucky US, used to be Birmingham UK

Post Thu Jun 13, 2013 9:56 pm

Re: started msx version - help needed as well

nice demo

does the msx have a similar screen memory layout to the speccy?
Next

Return to Wishlist

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO