BBC BASIC for Windows
« opp codes »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:29pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: opp codes  (Read 1316 times)
leslie griffin
Guest
xx opp codes
« Thread started on: Mar 10th, 2010, 10:15pm »

sorry,I can be a bit slow.Have not done much programming since my C64 days.
As I remember,z80 and 6502 used a completlely diff instr set.
How does my quad pentium understand my Ass program, there must be something else going on that I dont understand.

thx for your time and patience...
User IP Logged

softweir
New Member
Image


member is offline

Avatar




PM


Posts: 12
xx Re: opp codes
« Reply #1 on: Mar 10th, 2010, 11:26pm »

So long as you are writing pure Basic programs, there is no problem. BBC Basic in all its forms is interpreted (iirc), and is completely independent of the underlying hardware - so long as you have an interpreter written that operates with the hardware. Richard Russell has written the BBC Basic for Windows interpreter using all Intel instruction set codes, and that is all that is needed.

There is extremely high compatibility between BBC Basic for the Beeb and BBC Basic for Windows, and there is a huge body of programs that will work with no changes, or only a very few changes.

However, programs written in BBC Basic using assembly code for the 6502 chip won't run in BBC Basic for Windows. There are a number of these floating around in old magazine listings and books on BBC Basic programming, so you have to be careful to watch out if you are using these sources.

Also, if you are writing assembly code in your Basic program then you must learn and use the appropriate op codes. It is unlikely you will want to do this for quite a while, since Pentiums are so extremely fast! I am writing (when health permits) an Iterated Function System graphic program which is very fast in pure interpreted Basic, and would gain only moderate amounts of speed by being machine-coded. I doubt the performance boost would be worth the extra effort!

I imagine that it might be possible to write a 6502 emulator for BBC Basic for Windows, but this would be extremely hard work, and the small benefit wouldn't be worth the enormous effort.

Richard W.
User IP Logged

JGHarston
Junior Member
ImageImage


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 52
xx Re: opp codes
« Reply #2 on: Aug 6th, 2010, 3:20pm »

on Mar 10th, 2010, 11:26pm, softweir wrote:
I imagine that it might be possible to write a 6502 emulator for BBC Basic for Windows, but this would be extremely hard work, and the small benefit wouldn't be worth the enormous effort.

http://mdfs.net/Apps/Emulators/Tube/65TubeEm/
A 6502 emulator written in BBC BASIC (6502Em/.bbc/.exe is the executable). It will run on RISC OS, Unix or Windows. I wrote it as a demo of (a) emulating the 6502 and (b) writing code in seperate modules and statically building them into the final runtime. It runs 6502 BASIC IV and View quite well wink
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls