Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Small snippet to make the AY scream a bit
#9
boriel Wrote:Wel, some ideas:
  • Z80 architectures: MSX, Amstrad, ZX Spectrum clones, Gameboy, etc...
  • 68000 architectures: QL (many people asking for it)
  • .NET To run your programs in .NET (this should be easy)
  • JAVA -> Your program embedded in a browser
  • Javascript -> Like JAVA but easier. I'm seriously thinking it working on these now...
  • C -> Port your program to C so you could recompile it on your arch with less pain. Should be easy using ALLEGRO / SDL. Seriously thinking on starting it...
  • Commodore 64 (may people asking for it)
I was even considering PS3 (yes, I own a FAT PS3 model). But since Sony removed the "Other OS" option, I stopped.
I own a Commodore C64 too. Maybe not a bad idea to maka a Compiler, as there does not exist a crosscompiler yet. And Atari XL/XE has a similar architecture too. But for the start Spectrum Compiler is fine! Maybe you can add SAM Coupé support too?

boriel Wrote:I tried hard to keep Sinclair BASIC compatibility whilst expanding the language. So people wanting to port their old Speccy BASIC programs should find it easier that starting their programs from scratch. But definitely, people make new programs should use the FreeBasic-like (not 100%) syntax (Functions, subs, etc...).
I do so and even not use line numbers. Thank you for making programming on Spectrum more modern.

boriel Wrote:Problems: Some functions might definitely not be portable. E.g. ATTR (which color value to return on 16x16 different color set?), SCREEN$, POINT etc. These functions are external Wink ones. That's why you have to use --sinclair or #include to use them. External functions and subs need parenthesis since they are just normal .BAS files (Visual Basic allows calling SUBS with no parenthesis but I think this will clutter the language syntax and the parser). So, to maintain syntax compatibility with Speccy BASIC, some inner subs like RND(), PLOT(), DRAW(), INKEY$(), etc... has been integrated in the BASIC syntax as inner (integrated with the compiler syntax) functions and subs.
I prefer parenthisis for functions too, and I ***HATE*** VisualBasic. FreeBasic and PureBasic are much better.

boriel Wrote:BTW: to save memory, a --use-internal-print flag will be implemented soon (replacing my print routine with the standard ROM one, but disabling BOLD, ITALIC and OVER 2/3 features).
I like the idea. Looking forward for the next version.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)