View unanswered posts | View active topics It is currently Fri Jul 19, 2019 4:27 pm



Reply to topic  [ 2 posts ] 
 C model wanted for 68hc11 
Author Message

Joined: Wed Jan 09, 2013 6:54 pm
Posts: 1202
Elsewhere, user "legacy" asked
Quote:
i'd like to put a 68hc11 cpu description on ATMEGA32 in order to emulate things: any project around ?


I'm not aware of such a thing but I have two ideas:
- you start from one of the existing 6502 on AVR projects which have published source code and modify it for 68xx. For example this AppleII project, or this or this.
- you make use of code from a command-line simulator such as the one at http://www.cs.uml.edu/~fredm/cher/proje ... d/6811sim/
which looks like this:
Code:
?

 (empty line)     step once
s [n]             step n times
b [add [n]]       set break at add which will survive n hits
g [add [n]]       set pc to add, step n times
l [add [n]]       list n lines of disassembly starting from pc
R                 Reset memory, regs and reload code
t [add [n]]       set temporary break at add which will survive n hits
q or EOF          exit simulator
?                 print this list

hit return to continue
A 0C B CE    t=0
D  611A0CCE
X  7C802542 Y  22D008   breakpoints ->
SP 002F PC F800         lds     #00ff
    . . . .  . . . .

       0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
0000  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
0010  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
0020  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
0030  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
0040  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
0050  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
0060  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
0070  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
0080  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
0090  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
00a0  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
00b0  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
00c0  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
00d0  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
00e0  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
00f0  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
s9
A DE B F0    t=27
D  DEF0
X  7C802542 Y  22D008   breakpoints ->
SP 00FA PC F811         psha
    . . . .  N . . .

       0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
0000  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
0010  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
0020  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
0030  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
0040  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
0050  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
0060  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
0070  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
0080  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
0090  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
00a0  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
00b0  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
00c0  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
00d0  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
00e0  aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ................
00f0  aa aa aa aa aa aa aa aa aa aa aa f0 12 34 56 78 .............4Vx



Cheers
Ed


Sat Jan 11, 2014 7:26 pm
Profile
User avatar

Joined: Tue Jan 15, 2013 5:43 am
Posts: 180
BigEd wrote:
- you start from one of the existing 6502 on AVR projects which have published source code and modify it for 68xx.

The 68hc11 is highly similar to the original 6800. So if a 6800 emulator could be found, then that would probably be easier to modify than an emulator for 6502.

BTW, legacy, can you tell us why the 68HC11 interests you? Just curious.... I've worked with 6809 and 68HC705, but never 6800 or 68HC11. :)

cheers
Jeff

_________________
http://LaughtonElectronics.com


Sat Jan 11, 2014 8:50 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software