| |
Sasq
Registered: Apr 2004 Posts: 155 |
Basic emulator
How much of the C64 do you need to emulate to run (poke free) basic programs ? |
|
| |
JackAsser
Registered: Jun 2002 Posts: 1989 |
You need the cpu, rudimentary cia impl with timer and keyboard input, a hacked vic (kernel poll d012) + rom and ram correctly mapped. Did one i JavaScript to emulate putchar for a terminal program |
| |
Sasq
Registered: Apr 2004 Posts: 155 |
CIA is what will require some work I guess, especially keyboard.
What interrupts needs to be generated, only timer ? |
| |
Sasq
Registered: Apr 2004 Posts: 155 |
...and do you still have the source ? |
| |
chatGPZ
Registered: Dec 2001 Posts: 11108 |
you only need cia ports and irq that fires 60 times a second... all the rest you can ignore
what are you trying to do though? are you aware of MiSTs basic interpreter? |
| |
Sasq
Registered: Apr 2004 Posts: 155 |
I have 6502 and petscii/text mode emulation already, and mapped basic/kernal so I just wanted to to go a step further.
(as mentioned in the bass thread;)
https://youtu.be/g1uuhz7Qupw |
| |
JackAsser
Registered: Jun 2002 Posts: 1989 |
Quote: ...and do you still have the source ?
I’ll have a look! Send you on FB later tonight |
| |
tlr
Registered: Sep 2003 Posts: 1714 |
If poke-free, you only need small parts (I/O) of the kernal to run basic in emulation and those parts may be stubbed off.
I do this here: blitz 0.1
It runs a blitz compiled binary but that's more or less the same as running a basic program.
Disclaimer: I may have left out a few hooks if they weren't required for blitz. |
| |
Sasq
Registered: Apr 2004 Posts: 155 |
Hmm yes that seems to be more about intercepting the kernal than implementing the necessary CIA stuff.
Although I am interested in this too. |
| |
tlr
Registered: Sep 2003 Posts: 1714 |
Quote: Hmm yes that seems to be more about intercepting the kernal than implementing the necessary CIA stuff.
Although I am interested in this too.
The point of my example being: the basic interpreter doesn't really require any hardware, only the screen editor does and that's in the kernal. |
| |
Martin Piper
Registered: Nov 2007 Posts: 634 |
If you patch out some raster waits etc. You don't even need I/O or CIA. Just CPU will do |
... 29 posts hidden. Click here to view all posts.... |
Previous - 1 | 2 | 3 | 4 - Next |