Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Basic emulator
2020-12-22 15:57
Sasq

Registered: Apr 2004
Posts: 155
Basic emulator

How much of the C64 do you need to emulate to run (poke free) basic programs ?
2020-12-22 16:00
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
2020-12-22 16:06
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 ?
2020-12-22 16:08
Sasq

Registered: Apr 2004
Posts: 155
...and do you still have the source ?
2020-12-22 16:53
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?
2020-12-22 17:09
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
2020-12-22 17:21
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
2020-12-22 19:05
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.
2020-12-22 19:15
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.
2020-12-22 19:22
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.
2020-12-23 01:24
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
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
tlr
Exile/Anubis
Scooby/G★P/Light
VanessaE/Digital Aud..
K-reator/CMS/F4CG
Paladin/G★P
Guests online: 161
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 The Ghost  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.8)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Logo Graphicians
1 Sander  (10)
2 Facet  (9.7)
3 Mermaid  (9.4)
4 Pal  (9.4)
5 Shine  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.045 sec.