Fermer I. aldweb

Fermer II. Gratuitiels PC

Fermer III. Gratuitiels Palm

Fermer IV. Partagiciels Palm

Fermer V. iziBasic Palm

Fermer VI. Connaissance Palm

Fermer VII. Ordinateur Poche

Fermer VIII. miniPortail

Spécial !

Version mobile
de l'aldweb Site

Ni Français, ni Anglais ?

Essayez donc l'un de ces drapeaux :
[de] [es] [it] [pt]

Météo / Spam / www

Météo Lyon

aldweb contre le SPAM

Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
Se désabonner
298 Abonnés
Sites web de la famille

Webmaster - Infos
News Amis


   visiteurs en ligne

Comment trouve-tu le nouvel habillage de l'aldweb Site ?
Superbe !
forum.gifForum - iziBasic - Sujet n°1256

Forum - Forum
iziBasic - iziBasic

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

actif  Sujet n° 1256  Inline Asm?

le 10/09/2005 @ 08:31
par Ktimaster


I see in the izi Guide there is a command called CALL(. According to the guide this can call Asembler-like Functions. Could this (in a sence) be a work-around to add functions that are not yet implemented in iziBasic? I have created Programs in Z80 Asmbley in the Past.
There is a Strict note not to use this until you provide instructions on How to use it. Is there any way you can create at least an example or Put some thought to add a True inline Asm Command?
Ecrire à Ktimaster   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1
le 10/09/2005 @ 12:07
par aldweb


iziBasic's technology is:
- a virtual machine running p-code tokens
- a compiler to translate a Basic source code to p-code tokens

This has advantages and disadvantages:
+ easy syntax (give a look to the Palm OS APIs and compare it to the iziBasic syntax, you will understand!)
+ all of the low level code and hard stuff was coded by me (a single OPEN statement in iziBasic is something like 50 or 60 lines of code in iziBasic's virtual machine)
- closed to the virtual machine frame, so to the syntax defined, therefore difficult to expand

To balance this disadvantage over the 2 main advantages, I opened iziBasic to what is called PP applets.

Then, the explanation for the CALL statement is:
Call an assembler-like subroutine at address v|n in the code stack.
=> "assembler-like" because it should follow the p-code tokens structuring, so not real assembler 68k or ARM tokens
=> "in the code stack", meaning in the virtual machine code stack

The real workaround to adding functions not yet implemented or that will not be implemented because too specific is to use "PP applets" with the syntax of the Pascal language (until I am explained or take to time to see how to deal with "OnBoardC applets"...).

iziBasic itself is 100% coded with PP, which is by far the most powerful onboard compiler (but, as a counterpart, it is less easy to use than iziBasic), able to build native ARM code to 68k DragonBall code.

And, from a PP applet, you may use inline asm commands. But, I doubt that it would be of any real interest...


Ecrire à aldweb   Poster une réponse  Haut
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
Catégories de discussion  Forum 

^ Haut ^