6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 10:23 pm

All times are UTC




Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Thu Oct 06, 2011 5:13 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
BigDumbDinosaur wrote:
BigEd wrote:
I know we have a few users (and fans) of Michal Kowalski's 6502 simulator (which can also be used for code development)

(It's a Windows program but it works (more or less) in linux too.)

It can write Intel hex format, and also binary format (*.65b) - it claims to offer Motorola srec format but that seems to be plain binary too.

The Kowalski simulator's Motorola S-record output does work (but see caveat below) and will generate properly formed S1 and S9 records.

Ah, thanks - I tried again, and I found that writing a *.65m file gives a correct srecord file, whereas writing a *.s9 file gives a binary memory dump. The latter is the default, at least for me - I had to type in a file extension to override it.

Quote:
Actually, you would be better served by having the simulator produce a binary image and use the Options button to set the starting and ending address range. Your program must be assembled at the address from which it will start executing. You burn it into your EPROM at the ROM address that will map into the true execution address.

Thanks for the clarification - it seems that at least some programmers will happily accept a binary input file, which doesn't carry spurious load address information.

Cheers
Ed


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Oct 07, 2011 1:42 am 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1007
Location: Canada
I usually output the whole thing in binary, then edit out the chunk I want, load it into the programmer then burn it into the ROM. The offsets in Hex are never what I want in the ROM, so this process just makes it quick and easy.

Kinda like BDD suggests.

This way I can make some useful ROMS for some of the bank switched stuff I've made where I can have alternate code loaded into the ROM and select it via dip switch or program control.

_________________
Bill


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Oct 07, 2011 2:47 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Hi Bill
As a matter of interest, what tool do you use to edit the binary like that?
Cheers
Ed


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Oct 07, 2011 2:59 am 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1007
Location: Canada
I use this:

http://frhed.sourceforge.net/en/

_________________
Bill


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Oct 07, 2011 3:02 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
BillO wrote:
Thanks!

[keywords for searching: Frhed / Free hex editor / "Frhed is a binary file editor for Windows"]


Top
 Profile  
Reply with quote  
 Post subject: Kowalski Simulator
PostPosted: Fri Oct 07, 2011 5:11 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8514
Location: Midwestern USA
BTW, as I haven't had time to finish my UNIX-based 65C816 assembler, I wrote the entire POC BIOS ROM in the Kowalski simulator, using my '816 macros to synthesize the missing instructions. There are nearly 11,000 lines of source code for the ROM, which now includes a SCSI-1 compliant driver, with M/L monitor extensions that allow the disk to be used almost as RAM. I can also read a CD-ROM or a tape drive (tested on a DDS2 drive). The SCSI driver is PIO right now, so performance is not optimum, but I can fetch a disk block into RAM in about 10-12 milliseconds.

I only wish I had the time to dive into the source code for the simulator and make '816 instructions native to it. However, I have far more stuff to work on than time in which to do it (a new business opportunity presented itself today, which may keep me quite busy for the better part of a year), so digging into source code in an unfamiliar environment (Microsoft Visual something-or-other) that is commented entirely in Polish is out of the question. :)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 12 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: