BillO wrote:
drogon wrote:
Well - that's (presumably) ehBasic at 16Mhz...
Right!
What's the trick to porting BBC Basic?
That's easy - just write an Acorn compatible operating system....
Mines at 6K and growing. (Acorns was about 14K) However to make Basic work, you need the bare minimum - a BRK handler and 3 "OSBYTE" calls. Oh, then you need an OSWORD 0 handler (read line of text). Then .... Start here:
http://mdfs.net/Software/BBCBasic/6502/ and ...
And ... er ... good luck getting out of that rabbit hole...
I have plans to open source my works at some point, but I need to do some tidying up and re-arranging of the code somewhat. I've also ran out of room, however that's only because I was looking at TaliForth's 24K executable, if I ignore that (which I probably will), then I have just under 16KB of operating system space. (Memory is $8000-BFFF: Language ROM, $C000 -> $FFFF: OS ROM - Ruby has hardware IO in $FE00-$FEFF and the top 128 bytes of $FF80 are the Ruby/Acorn OS Vector entry points.
Cheers,
-Gordon
_________________
--
Gordon Henderson.
See my
Ruby 6502 and 65816 SBC projects here:
https://projects.drogon.net/ruby/