aldweb

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

Recherche




Newsletter
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
296 Abonnés
Webmaster - Infos
Visites

   visiteurs

   visiteurs en ligne

StatPays
En ligne

Colombia : 2
China : 5
United States : 6



Depuis le 11/02/2009

France:3249173
United States:1011058
United Kingdom:527581
Germany:290480
Italy:246117
Canada:178534
Belgium:163583
Japan:124714
Spain:102913
Russian Federation:91092
Switzerland:84533
Netherlands:83691
Mexico:76530
Brazil:66570
Argentina:59224
Czech Republic:51442
Poland:48949
Morocco:47300
China:43916
Colombia:39616
Hungary:38975
Turkey:35325
Australia:35033
Portugal:28839
Sweden:26543
Austria:23412
Taiwan:21649
Finland:20429
Denmark:20080
Venezuela:15533
India:13399
Romania:12811
Korea:11689
Greece:11424
Norway:11118
New Zealand:10788
Chile:10575
Luxembourg:10288
Slovakia:8642
Croatia:8271
Ireland:8085
Ukraine:8059
Indonesia:8016
Malaysia:7445
South Africa:6413
Uruguay:6370
Singapore:6222
Israel:5713
Peru:5160
Estonia:4555
Bulgaria:4407
Thailand:4204
Lithuania:4109
Cote D'Ivoire:3026
Madagascar:2920
New Caledonia:2580
Gibraltar:2569
Belarus:2187
Hong Kong:2146
French Polynesia:2145
Dominican Republic:1720
Philippines:1635
Saudi Arabia:1586
Latvia:1519
Serbia and Montenegro:1518
Pakistan:1487
Moldova:1444
Algeria:1412
United Arab Emirates:1370
Guatemala:1295
Slovenia:1253
Ecuador:1232
Bosnia and Herzegovina:987
Costa Rica:956
Tuvalu:924
Vietnam:915
Monaco:871
Paraguay:807
Egypt:786
Macedonia:541
Bolivia:499
Nicaragua:446
Guadeloupe:435
Cyprus:403
Lebanon:372
Cuba:361
Honduras:361
Netherlands Antilles:350
GoogleBot:339
Kazakstan:329
Syrian Arab Republic:287
Jordan:276
Mauritius:244
Albania:234
Kenya:234
Andorra:223
Ghana:223
Nepal:212
Georgia:202
Reunion:191
Mozambique:180
Congo:180
Uzbekistan:19
Jamaica:2
Zimbabwe:1
Iran:1
Trinidad and Tobago:
article.gifIII. Gratuitiels Palm - 9. tinyBasic

tinyBasic

  • Version : 1.2 (Septembre 2007)
  • Gratuitiel pour :
  • Langue :
  • Ecran :
  • Fichier téléchargeable : tinybasic.zip (170 Ko)

tinyBasic est un petit exercice de style, le développement d'un interpréteur Basic minimaliste pour Palm en utilisant iziBasic. J'ai ensuite porté le code source sous PP & NaPP pour Palm ainsi que sous Free Pascal pour PC.



Qu'est ce que tinyBasic ?

Note : la population concernée par ce genre de "joujou" étant principalement la communauté des développeurs, la langue usuelle de travail de cette communauté étant l'anglais, je vous prie de bien vouloir me pardonner de ne pas avoir pris le soin de traduire en français le reste de cette page (mais si quelqu'un souhaite le faire, il sera le bienvenu !).


tinyBasic is a quick & dirty Tiny BASIC interpreter for Palm.

Source code versions are available in Basic (iziBasic) and Pascal (PP, NaPP and Free Pascal), to be found in the download package together with full documentation. These source codes are of course in "Copyleft", as my small contribution to its original author's great philanthropy (read below).


Tiny BASIC

Tiny BASIC started out as a way to get a BASIC running in the minimum amount of memory space (~2 KBytes), because RAM used to be very expensive and home computers would only have a few KB of RAM back in the 1970's.
Here is an interesting link about Tiny BASIC: http://en.wikipedia.org/wiki/Tiny_BASIC_programming_language

Nowadays, Tiny BASIC is no more than a programming game that still a few people have fun with
But, nevertheless, my work inspired some other people, including Carl Gundel, who is the author of the well-known Liberty Basic. Read the full story here: http://basicprogramming.blogspot.com/2007/01/tiny-basic-revisited.html
And play online with Carl's port of my tinyBasic here: http://www.runbasic.com/

My Tiny BASIC dialect, that I just called "tinyBasic", is similar and loosely based on the Intel 8080 Tiny BASIC written by Li Chen Wang and appearing in Doctor Dobb's Journal of Computer Calisthenics & Orthodontia in the May 1976 Vol 1, No. 5 issue. It is worth mentioning that Li Chen Wang's Tiny BASIC interpreter was released with full source code, showing the "copyleft" label for the first time, and occupied only 1.77 KBytes of memory.

The main differences between my tinyBasic dialect and Li Chen Wang's Tiny BASIC are:
- the use of float and not of integer numbers (because it is written in iziBasic, there is no need to bring a limit in this area), and the use of the integer division operation ("") to easily get the integer part of a number;
- the no use of GOSUB/RETURN to avoid a stack (and because you can easily simulate a GOSUB/RETURN call with GOTO and a variable set to the return line);
- the addition of the LOAD/SAVE statements, for allowing to keep working on a source code;
- the addition of the HELP statement, to get an immediate onboard reminder;
- the addition of the MEM statement, to get an idea of the free remaining storage;
- the addition of the CLS statement, to clear the screen;
- the addition of the TICKS/TICKSPERSEC functions, to show how to integrate functions in the math parser and to get an idea of speed execution (benchmarking).

Note: tinyBasic's bytecode in iziBasic is 3.20 KBytes long, to be compared with the 1.77 KBytes of Li Chen Wang's Tiny BASIC.



Updates Description

1.2 (09/17/07)
- recompiled this program with the latest iziBasic version 6.1 to avoid device freezes or soft resets on some devices

1.1 (04/30/07)
- minor update of iziBasic's source code to retrieve correctly values like -3 or .5 (before one had to write a=0-3 or a=0.5, when now a=-3 and a=.5 are valid entries)
- another minor update was to only accept integer values as line numbers
- ported the iziBasic source code to PP, NaPP and Free Pascal

1.0 (11/04/05)
- initial release (iziBasic source code only)


Date de création : 02/11/2005 @ 23:01
Dernière modification : 25/09/2007 @ 17:04
Catégorie : III. Gratuitiels Palm


Imprimer l'article Imprimer l'article

 
react.gifRéactions à cet article


Réaction n°4 

par Markus Mangold le 15/01/2008 @ 12:10

Hi Laurent,

of course I will send you the code and the URL if my web page is online. I hope you don't mind that I renamed the Basic to XTTBASIC (i.e. e-X-ten-T-ed -T-iny BASIC)
But as I told earlier I removed the code for Palm so far, because I don't own a Palm nor the compiler and the code is much more readable (to me) without the specific settings. But a "copy&paste" should do ...
(I also tested the code only for Linux as I have no working installation of freepascal for windows, yet).

Best wishes,

Markus


Réaction n°3 

par aldweb le 15/01/2008 @ 09:28

Hello Markus,

Sure, you are allowed to extend my tinyBasic. I gave away the source code, so that any good willing people could do that kind of enhancements.

May I kindly request you to send me working copies of your extended version, together with the source code if you don't mind, so that I can see how I could further implement the enhancements for Palm?

And if you set up a web page for your version, I would be very happy to link to it from here.

Cheers,
aldweb

Réaction n°2 

par Markus Mangold le 14/01/2008 @ 18:16

Hello,

I like your tinyBasic because it`s written in Pascal. Am I allowed to extend the BASIC (if I pay the credits to you?). I implemented PEN, PAPER, LOCATE and WAIT so far and wanted to add FOR..NEXT, GOSUB..RETURN, GETKEY and STRING Variables and many more ... (but only for FreePascal).

Réaction n°1 

par georgy boy le 29/01/2006 @ 13:36

Quel courage !
Je m'apprête à faire pareil pour traiter des miniprogrammes basic d'acquisition de données sur un PIC16F877,qui fera aussi mini serveur Ethernet de ces données ... je vois que ca promet !...
 
Spécial !



Version mobile
de l'aldweb Site

m.aldweb.com


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


Sites web de la famille

News Amis
Sondage
Comment trouve-tu le nouvel habillage de l'aldweb Site ?
 
Superbe !
Joli
Moyen
Moche...
Résultats
^ Haut ^