Atmos Basic compiler

Atmos Basic compiler

Post by mrri » Sun, 05 Oct 2003 05:52:21


Is it possible to make the Atmos Basic compiler using Atmos Basic
interpreter?
If yes, compiler may be a rom file for euphoric, and it will use
developers.
And what do U think, will be compiled Atmos Basic code little and fast
if compare with lcc65???
 
 
 

Atmos Basic compiler

Post by Steve Mars » Sun, 05 Oct 2003 21:04:31


"norik" < XXXX@XXXXX.COM > wrote


I'm not sure, but I do know of a couple of compilers that exist. One is Dr
Ray McLaughlin's 'Compiler', which I've had problems using, but others seem
to find it OK. The other is T-Comp which I've not used yet.

Steve M

 
 
 

Atmos Basic compiler

Post by TheSpid » Sun, 05 Oct 2003 21:17:44

Hiya Steve,



seem

Interesting. Did not know that any compilers existed for Oric BASIC.
Does anyone have a copy they could send me, or point me in the right
direction?
--
Peter 'TheSpider' Paterson
A Scotsman in Kentucky
Believer in the Lord Jesus Christ
Homepage : http://www.yqcomputer.com/
Web-Blog : http://www.yqcomputer.com/
 
 
 

Atmos Basic compiler

Post by Euphori » Mon, 06 Oct 2003 02:53:31


PHyfb.3312$ XXXX@XXXXX.COM ...
seem

There's also LM+ for the Oric Atmos, and the integrated HyperBasic of the
Telestrat.
LM+ does not compile every feature of Oric's BASIC, so it's intended for
people developing new programs.

best regards,

Fabrice
 
 
 

Atmos Basic compiler

Post by Steve Mars » Mon, 06 Oct 2003 09:16:55


"Peter (TheSpider)" < XXXX@XXXXX.COM > wrote


Another program on it's way to Spider-Man !

Steve M
 
 
 

Atmos Basic compiler

Post by TheSpid » Mon, 06 Oct 2003 12:10:56

Hiya Steve,




/me feels loaded up :)

Cheers Steve.
As I emailed back to you, I managed to get SPAINT.BAS to compile, assemble
and link. No errors, except for ignoring CLOAD and CSAVE.
However I get the following error when I try to run the generated file
SPAINT.COM...

Break in Byte #4902

Any clue why?
--
Peter 'TheSpider' Paterson
A Scotsman in Kentucky
Believer in the Lord Jesus Christ
Homepage : http://www.yqcomputer.com/
Web-Blog : http://www.yqcomputer.com/
 
 
 

Atmos Basic compiler

Post by mrri » Wed, 08 Oct 2003 09:44:02


Wow! Steve, I searched oric.org and did not find any downloadable basic version.
I'll very grateful to You, if U'll send me both compilers.
My real e-mail address is :
norik

AT
freenet
DOT
am
Thank You very much!
 
 
 

Atmos Basic compiler

Post by mrri » Fri, 10 Oct 2003 05:52:12


I am very thankful to Steve for compiler.
It works and produce very small code!
The simple 'hello, world!' binary is 8 bytes in weigh!
Am I right? When type 'DIR', the letter '8' is opposite my file
'hello.com'.
But as far as I know, one character take up 1 byte... so 8 byte = 8
characters... so I don't belive it is a 8 byte binary. If so, it is a
smallest 'Hello, world!' I ever seen.

Now I am trying to understand, how make .tap file from binary, that
I've compiled. The binary exists on the disk, and I am not used to
Oric with disk operating system.
More of that, it will be excellent to run compiled program on my real
Pravetz, so I need to produce .tap from .com on the sedoric disk.
 
 
 

Atmos Basic compiler

Post by Simo » Fri, 10 Oct 2003 06:17:42

Hi,



Yes, you were right to have a doubt !
8 is the number of sectors used on the disk, and IIRC a sector is 256
bytes big. I think among the 8 sectors is a system sector ("descripteur"
in French, no idea in English)
Which means your file is about 6*256 + a bit of 256 bytes big, so
approx. 1.5Kb big.

Simon


If it's a Sedoric 3 disk, and if you're using Windows, you can try the
old utilities I made years ago:
- Oric Disk Manager will extract the file from the Sedoric disk to the
PC (raw datas, don't belive the menus, the tape header is NOT included)
- then use Tape Header Creator to create a TAP file from the file you've
just extracted. You will be asked where to place the program in memory.
And it should work fine :)

Simon
 
 
 

Atmos Basic compiler

Post by Simo » Fri, 10 Oct 2003 06:20:00


Oh, and you can also simply use the CSAVE command...
Load your file (LOAD"your progam name") then CSAVE it (with the correct
memory parameters), and you should have the TAP file somewhere on your
PC hard drive (this can differ according to your Euphoric version and
the way you configured it).

Simon
 
 
 

Atmos Basic compiler

Post by mrri » Fri, 10 Oct 2003 06:53:47


I did it!!!!!
Thank You all!!!
1. I biited compiler.dsk :
./euphoric -d COMPILER.DSK
2. choosed 1 - for COMPILER
typed my program, for example,
10 PRINT "Hello, world!"
3. Saved it to disk
SAVE "HELLO.BAS",AUTO
4. Typed
COMPILE "HELLO.BAS"
5. After compiling press F8 to reboot
6. Choosed 2 for Assembler
7. Answered "A" for disk and waiting while assembler works.
After all, I recieve address of last memo used by my program - for example #0B7D
8. Pressed any key, and then Choose 3 from main menu - LINKER
Compiler asked for a destination disk (A) andname of compiled binary.
So, I have a "HELLO.COM" file in drive A
9. Reboot, load "HELLO.COM" by typing "HELLO.COM"
10 CSAVE "HELLO.TAP",A #501,E #0BD7
That's all! Now I can run this file with euphoric or with my real Oric - Pravetz-8D
Thanks to all!!!
 
 
 

Atmos Basic compiler

Post by Steve Mars » Fri, 10 Oct 2003 10:06:41


"norik" < XXXX@XXXXX.COM > wrote


Glad to help :o) Let us know how you get on with the programming !

Steve M