<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Wed, 13 Sep 2006 23:06:14 +0100
From   : jgh@... (Jonathan Graham Harston)
Subject: 6502Tube emulator in BASIC

As a proof of concept I put together a 6502 emulator last night,
written in BBC BASIC, starting with PDPTube and replacing the CPU
components. See http://mdfs.net/Apps/Emulators/Tube/65TubeEm/65Em
 
I put it together to see how it would run on the ARMCoPro as a
diversion from examining 65Tube to work out what it needs to run.
It works quite well, though there are still a few crincles that
need ironing out. BASIC itself runs. BASIC running BASIC!
 
>From the 6502* prompt, various commands are available:
 
*/<filename> or RUN <filename>
  will load a file of 6502 code into emulated memory. If the
  loaded code has a ROM header, then HIMEM is set to the start
  address.
 
*debug <value>
 enables debugging. b0 turns on register display, b1 turns on
 single stepping
 
*quit
 exits the emulator
 
*go <addr>
 jumps to a location in emulated memory
 
*help
 displays help, *help 6502 lists commands
 
*save <filaname>
 saves the entire memory.
 
It's also a demostration of using a Make system to construct
programs, so I've also uploaded the makefile and the program
source components.
 
Enjoy!
 
See also:
Z80Tube and PDPTube at http://mdfs.net/Apps/Emulators/Tube
 
-- 
J.G.Harston - jgh@...                - mdfs.net/User/JGH
BBC BASIC for Windows and Internationalisation
  See http://mdfs.net/Software/BBCBasic/Windows/ProgTips
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>