Martial BENOIT <[EMAIL PROTECTED]>:

> If you think about syntax then if people did learn the MSX BASIC, learning
> an other one is not a great brain storming...

I think so, but perhaps the bad side of not being compatible is that
someone would like to migrate a program from BASIC MSX to the compilated
one, and then he would have to rewrite the program. Anyway, its not a
good reason to maintaining compatibility. Has anybody another reason? I
don't know any more.

> For internal point of view here is a simple example:
> 
> MSX BAISC handle float type using DCB byte!!! that a simple way to handle
> this kind of number but I'm not sure that it is the fastest way to do it, I
> would like prefer use pure binary coding and only convert the binary form
> when printing on screen this way float computation is faster....

I don't know in MSX BASIC, but in MSX BASIC 2 the floating point numbers
are stored in binary (IEEE 754 format). Even though, you're right: it
can be speeded up a lot.

> an other simple way to use  float number in a range of 0.0 to 65355.996132
> is to use 16 bits of integer and 16 bit for fractionnal part this mean the
> Z80 will compute de number on 32 bits with an integer part of 16 bits like
> this:
> 
> 4 byte:
> 
> byte1         byte2           ,       byte3           byte4
> MSB INT       LSB INT ,       MSB FRAC        LSB FRAC

Yes, it is fix point notation. I wont implement it in the BASIC I'm
doing because anyone can write his own operation routines (add, sub,
multiplication) By the way, do you know how to do the division in this
format?

> I this kind of trick for XTAZY in the enemy VS player position this way I
> can render the right X and Y increment for the enemy bullet :) I'm close
> the the precision of the LINE statment of the MSX BASIC :) (the LINE
> fonction certainly use the Brezennam algorithm).

Those bullets moved one pixel each time or more than one pixel? Anyway,
I think using fix point instead of Bresenham algorithm is simpler and
faster (because the last needs some comparations, and the first uses
only adds with carry, you know)


        Greetings from Mallorca,
        Juanjo

        



alias: YOMBO
group: Club MESXES

real name: Juan Jos� Luna

(Hey, I'm using the account of my brother, so I'm not him!)

[EMAIL PROTECTED]
http://mesxes.home.ml.org
****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****

Reply via email to