Home  |  RetroBox  |  Articles  |  Forum

RetroBox high-level language compiler

Home of the RetroBox, a virtual home computer and game development system.

Re: RetroBox high-level language compiler

Postby paul_nicholls on Thu Sep 03, 2009 9:41 pm

Mattias Gustavsson wrote:For the Sys calls, there's one I forgot to mention
Code: Select all
   move.l mystr,a0 ; Address to a zero terminated sequence of ascii values
   move.l 0,d0   ; DebugPrint command
   sys 0 ; Debug sys call


Which might be useful to add support for, as it lets you print a custom string.

For the ROR/ROL, best is to just make do without them for now - just reversing the order probably won't work...


Thanks :)
I can at least use ROL anyway ;)

BTW, the language now does bit-wise And, Or, Xor as well as Mod too...
cheers,
Paul
User avatar
paul_nicholls
 
Posts: 25
Joined: Wed Aug 19, 2009 6:11 am
Location: Australia, Tasmania, Hobart

Re: RetroBox high-level language compiler

Postby paul_nicholls on Thu Sep 03, 2009 11:27 pm

Hi Mattias, I have been using an added DebugPrint command in my language that can send the result of an expression to the debug viewer...

I have one question, does the debug viewer guarantee to receive the values sent in the same order?

The values being sent from my program (I'm testing for-loop code) seems to be out of sequence, but I'm not sure if it is debug viewer (tcp link?) that is the issue, or my compiler...

I think this is another reason for a sys command perhaps that will show a value in a dialog box instead of just sending it to the debug viewer - then I can be sure I am looking at values in the correct sequence when testing ;)

Just my $0.02 :lol: LOL

cheers,
Paul
User avatar
paul_nicholls
 
Posts: 25
Joined: Wed Aug 19, 2009 6:11 am
Location: Australia, Tasmania, Hobart

Re: RetroBox high-level language compiler

Postby paul_nicholls on Fri Sep 04, 2009 3:29 am

I have another question Mattias - what program do you use to build RetroBox?

I have tried using Code:Blocks and am getting errors (see below):

..\PixieLib\Source\Common\StandardLibrary.h|87|error: `size_t' has not been declared|

at this line:

void QSort(void* base, size_t num, size_t width, int (__cdecl* compare )(const void*, const void*) );

How do I fix the above error?

cheers,
Paul
User avatar
paul_nicholls
 
Posts: 25
Joined: Wed Aug 19, 2009 6:11 am
Location: Australia, Tasmania, Hobart

Re: RetroBox high-level language compiler

Postby Mattias Gustavsson on Fri Sep 04, 2009 5:34 am

Visual Studio of course :-) Not only is it free, it is by far the best dev tool I've ever seen 8-)

You should be OK to just remove the QSort stuff from StandardLibrary - or even just change size_t to int
8-) www.tophatarcade.com - Developer resource site and Sim/Strategy/RPG affiliate outlet
:roll: www.retrogamedev.org - For developers who like to make oldschool games
:shock: www.colossusentertainment.com - More information about me and some free games
User avatar
Mattias Gustavsson
Site Admin
 
Posts: 55
Joined: Sat May 17, 2008 11:36 am

Re: RetroBox high-level language compiler

Postby paul_nicholls on Sat Sep 19, 2009 1:03 am

HI Mattias, sorry I haven't had a chance to work on my RetroBox stuff for a bit (too busy with my PGDAnnual 2009 - Arcadia competition entry (www.pgdannual.com) + real life lately (and having 3 days off work due to illness...) :(

I did have one question - when is the next version of RetroBox coming out?

I'm looking forward to the stack operations (parameter passing), and the ROR bug fix ;)

cheers,
Paul
User avatar
paul_nicholls
 
Posts: 25
Joined: Wed Aug 19, 2009 6:11 am
Location: Australia, Tasmania, Hobart

Re: RetroBox high-level language compiler

Postby paul_nicholls on Fri Jan 08, 2010 10:06 pm

Hi all,
just thought I'd say Happy New Year! :)

cheers,
Paul
User avatar
paul_nicholls
 
Posts: 25
Joined: Wed Aug 19, 2009 6:11 am
Location: Australia, Tasmania, Hobart

Previous

Return to RetroBox Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron
RetroGameDev is managed by Mattias Gustavsson and sponsored by Colossus Entertainment
Reproduction/republishing of any material on this site without permission is strictly prohibited.
Powered by phpBB© phpBB Group