About ORIC ATMOS BASIC / C64 BASIC

About ORIC ATMOS BASIC / C64 BASIC

Post by seilebos » Fri, 20 Feb 2004 22:34:39


Bonjour ?tous.

Apres quelques udes, le basic du commodore C64 et celui de l'oric
ATMOS ont la me base commune.
A partir d'un noyau basic commun (C'est ?dire sans la gestion des I/O
et de la partie son/graphique), les deux basics ont diverg sur les
points suivants :
- Gestion des codes erreurs possibles sur C64 / pas sur ATMOS,
En effet, lors de l'envoi d'un code retour d'erreur, le basic
appelle
l'adresse contenue dans l'adresse $300
- Ajout de commandes sur le C64 : PRINT#, INPUT#, VERIFY, CMD
- Absence des commandes sur le C64 : DOKE, DEEK (Je n'ai pas dress? une liste
exhaustive)
- Les variables utiliss par le basic C64 ne sont pas situ au
mes endroits.

Ce qui frappe sur le basic C64 c'est la touche PRO de la partie I/O.
C'est ? dir qu'il existe la notion de "device", d'OPEN, READ , WRITE, CLOSE
comme sur le C (en moins pouss?.

J'aurais bien voulu savoir pourquoi les ingieurs d'ORIC ont
supprim?la vectorisation du code erreur. Cela aurait bien pratique.

De plus les acc aux piphiques sont nettement plus simple
(Hardware plus simple ?programmer) ...

Enfin, la dection des touches frapps sur 64 est aussi complexe
sur oric.

A +.

Seilebost.
 
 
 

About ORIC ATMOS BASIC / C64 BASIC

Post by P » Sat, 21 Feb 2004 01:51:32

English, please ?

"olivier JEAN" < XXXX@XXXXX.COM >, iletide sunu yazdi

> - Absence des commandes sur le C64 : DOKE, DEEK (Je n'ai pas dress? > une liste
> C'est ? > dir qu'il existe la notion de "device", d'OPEN, READ , WRITE, CLOSE

 
 
 

About ORIC ATMOS BASIC / C64 BASIC

Post by Anders Car » Sat, 21 Feb 2004 03:13:12

"Pe@ceR" < XXXX@XXXXX.COM > writes:


Babelfished with some hand adjustments:


I'm not sure what Jean's conclusions or motives are though, if
the C64 basic will be reverse engineered and modified to work
as a drop-in replacement of the original Oric Basic. Since I
was told that the Oric is doing a lot of keyboard and other
scans on each interrupt, maybe more than just the Basic would
have to replaced to get faster Basic programs (although those
would not be Oric Basic programs anymore, but Commodore Basic
programs for a non-Commodore computer).

--
Anders Carlsson
 
 
 

About ORIC ATMOS BASIC / C64 BASIC

Post by P » Sat, 21 Feb 2004 07:02:43

Thanks for the transation..

As an addition / rememberance ;

there are many similarities in all 65xx based machines..

For example, in all 65xx machines ( Oric, C64, Apple etc.. ) CALL
DEEK(#FFFC) leads to restart of the computer.. ( i.e. #FFFC memory location
holds information of the location of machine code program in memory which
restarts the computer etc.. )
 
 
 

About ORIC ATMOS BASIC / C64 BASIC

Post by Anders Car » Sat, 21 Feb 2004 07:45:08

"Pe@ceR" < XXXX@XXXXX.COM > writes:


Yes, that is part of the design, much like how a Z80 machine resets
if you call a routine at address 0 (i.e. RANDOMIZE USR 0) if I have
understood it correctly.

Here are a few examples of the reset vector, although I haven't
had opportunity to check if they all work.

VIC20 : 64802
C64 : 64738
Apple II : 64098
Oric-1 : 63631
BBC B : 55757 (?)
Atari : 58487
C128 : 65341

I believe some parts of the low 1 kB will be quite similar between
different brands of 6502 machines too. The first page is of course
a zero page that the ROM software might have "reserved", followed
by a stack but also a set of Basic pointers at $0300, at least in
the case of Commodore and Oric it seems.

--
Anders Carlsson
 
 
 

About ORIC ATMOS BASIC / C64 BASIC

Post by Geoff Phil » Fri, 27 Feb 2004 02:30:09


From memory, I think many of the BASIC tokens match between the two
computers - tell me if I'm wrong here, I vaguely recall doing that
experiment between various microsoft based machines way back.

Also don't both the C64 and Oric use zero page for a get-next-character
routine?

Geoff.