6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu Nov 21, 2024 10:03 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sun Apr 28, 2024 6:41 am 
Offline

Joined: Wed Jan 03, 2007 3:53 pm
Posts: 64
Location: Sunny So Cal
Source code is, after twenty years (!), available. 6o6 provides a virtual NMOS 6502 on a 6502, 65C02 or 65816 in 8-bit mode. It completely abstracts memory access, allowing memory to be remapped, and it uses the host ALU for accurate results and flags. It supports all documented opcodes, can pass Klaus Dormann's functional test, and can virtualize itself ... virtualizing itself. The ratio of guest to host instructions varies, but is about 50 depending on the complexity of the harness and kernel, running about 30-50 times slower than actual code depending on opcode mix.

This isn't (primarily) intended for people developing their own hardware, although it can serve that purpose, and it can be engineered to use hardware assist (like external memory, MMUs, etc.). Instead, it's meant for simpler systems or extant NMOS/CMOS machines that lack memory management but still need a controlled environment to run code.

Sample binaries of the four example programs are available for the C64 (all four) and the Apple IIe/c/gs (three of the four). These examples include a basic hello world, virtualizing itself virtualizing itself virtualizing hello world, a simple two-task kernel, and (C64 only) running the RC2014-6502 ROM with EhBASIC and monitor completely from an external geoRAM.

6o6 was originally written for the Incredible KIMplement, which emulates a KIM-1 on a C64. That is now open source as well.

Further discussion: https://oldvcr.blogspot.com/2024/04/vir ... 6-and.html
Github for 6o6 and pre-built binaries: https://github.com/classilla/6o6
KIMplement main page: https://www.floodgap.com/retrobits/kim-1/emu.html
Github for KIMplement: https://github.com/classilla/kimplement/

_________________
Machine room: http://www.floodgap.com/etc/machines.html


Top
 Profile  
Reply with quote  
PostPosted: Sat May 04, 2024 1:11 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10985
Location: England
Nice work! Well done and thanks for sharing the code. Tiny PILOT is a nice bonus!


Top
 Profile  
Reply with quote  
PostPosted: Mon May 06, 2024 1:15 am 
Offline

Joined: Wed Jan 03, 2007 3:53 pm
Posts: 64
Location: Sunny So Cal
Thanks! :) Yeah, that was a nice find from Dave Hassler. It performs surprisingly well, even the ELIZA demo.

_________________
Machine room: http://www.floodgap.com/etc/machines.html


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: