Search found 12 matches

by Mindiell
Wed Dec 15, 2010 10:27 am
Forum: Emulation and Simulation
Topic: Running test6502.a65 on Py65
Replies: 28
Views: 20932

Hi there,

Since I'm writing my own 6502 simulator, I'm very interested by all test suites I can find.

How are you saying that a test is failed (I saw a source code in which an infinite loop was done) ?

By the way, your source code would be more than interesting since I'm fighting against the C ...
by Mindiell
Mon Dec 13, 2010 8:56 am
Forum: Emulation and Simulation
Topic: Assembler with correct srec output
Replies: 6
Views: 3679

Re: Assembler with correct srec output

Finally, with a little modification in the code :

Code: Select all

	org	$4000

	lda	source
	sta	dest
	sec
	rts

source      db    $77
dest        db    $00
	end	$4000
The as65 is giving me the S9 line with the correct value $4000.

Thanks again,
by Mindiell
Mon Dec 13, 2010 8:42 am
Forum: Emulation and Simulation
Topic: Program Counter initialization
Replies: 22
Views: 20865

Eh eh, don't fight for me ! I understand the concept behind each definition ;)
by Mindiell
Sun Dec 12, 2010 9:52 pm
Forum: Emulation and Simulation
Topic: Program Counter initialization
Replies: 22
Views: 20865

GARTHWILSON wrote:
As a moderator, I would prefer that you keep related questions together in one topic.
I'll do that, for sure. But my third question (about assemblers (or compilers ;) )) was not directly related... The second one, about the P register was related I guess
by Mindiell
Sun Dec 12, 2010 8:02 pm
Forum: Emulation and Simulation
Topic: Program Counter initialization
Replies: 22
Views: 20865

leeeeee : Thank you, I'll have a look at it.

BigDumbDinosaur : GARTHWILSON did correct me, but thanks again for helping me being more precise. Thanks for the help about the starting address.

As I said I want to do a simulator for the Atari 2600 and I'm starting by simulating the 6502. And whithout ...
by Mindiell
Sun Dec 12, 2010 7:56 pm
Forum: Emulation and Simulation
Topic: Assembler with correct srec output
Replies: 6
Views: 3679

Well, it seems I may did an error or two :)
FASM and AS65 are good for their first S1 line, I was wrong (I was not sure, as I said in the first post). For the start address, I will have another look in the FASM doc in order to be sure that I can ask for a correct address.

Thanks to everyone for ...
by Mindiell
Fri Dec 10, 2010 2:01 pm
Forum: Emulation and Simulation
Topic: Assembler with correct srec output
Replies: 6
Views: 3679

Assembler with correct srec output

Hello everyone,

I'm now looking for a correct assembler able of outputing a s-19 file. I use the wikipedia page and the linux man page to understand how this format file works.

I tried this very simple code
org $4000

lda source
sta dest
sec
rts

source db $77
dest db $00

I tried thoses ...
by Mindiell
Fri Dec 10, 2010 1:44 pm
Forum: Emulation and Simulation
Topic: Program Counter initialization
Replies: 22
Views: 20865

Thanks again,

I don't use java right now, but I downloaded the AS65 assembler from "Frank".
By the way, this time I know who to ask to change the link, the AS65 link is broken, and the correct link is : http://www.obelisk.demon.co.uk/6502/as65_111.zip

;)
by Mindiell
Fri Dec 10, 2010 1:36 pm
Forum: Emulation and Simulation
Topic: Program Counter initialization
Replies: 22
Views: 20865

Ask as many as you wish. There are no limits (except when we can see someone asks without putting out any effort, as happened recently). Thank you so much, but next time I'll do another thread in order to make it easier for someone else looking for the same information ;)

It sounds like you just ...
by Mindiell
Fri Dec 10, 2010 8:40 am
Forum: Emulation and Simulation
Topic: Program Counter initialization
Replies: 22
Views: 20865

Great ! I was certain there was a hardware explanation and kc5tja explained very well.

Thanks for all this information. I'll try to do my best now.

Oh, and as I'm here, a last question :)
Do you know where I can find a 6502 compiler with which I can take a source and obtain the binary result ?
I ...
by Mindiell
Thu Dec 09, 2010 9:24 pm
Forum: Emulation and Simulation
Topic: Program Counter initialization
Replies: 22
Views: 20865

Thank you,

So, if I understand well, the processor will, at start and at each reset, set the PC register to what it found in the reset vector ($FFFC-$FFFD) ?

Actually, what I want to do is doing Atari2600 emulation and I'm trying to emulate (or simulate I think) the 6502. So, right now I want to ...
by Mindiell
Thu Dec 09, 2010 3:44 pm
Forum: Emulation and Simulation
Topic: Program Counter initialization
Replies: 22
Views: 20865

Program Counter initialization

Hi there,

I'm completely new to the 6502 world, and I'm coding an emulator for this microprocessor. I already read a lot of things on it, but I get stuck with one little thing at this moment :
- How the processor know where to start the Program Counter ?

I saw some sources with .ORG 4000 or .ORG ...