Search found 16 matches

by zellyn
Tue Dec 17, 2013 10:53 pm
Forum: Programming
Topic: Functional Test for the NMOS 6502 - request for verification
Replies: 202
Views: 130218

Re: Functional Test for the NMOS 6502 - request for verifica

https://github.com/zellyn/go6502/tree/master/tests - look for 6502_functional_test.bin, but it's a bit dated right now.
by zellyn
Fri May 03, 2013 3:22 pm
Forum: Programming
Topic: Advice on handling possibly zero-page instructions...
Replies: 14
Views: 3135

Advice on handling possibly zero-page instructions...

Hi there,

For context, I'm trying to write an s-c compatible assembler that can be used on any platform.

I'm curious as to how people generally implement possibly zero-page instructions with forward references: you can't tell immediately whether the instruction will be two or three bytes long, and ...
by zellyn
Wed Apr 24, 2013 9:04 pm
Forum: Emulation and Simulation
Topic: Breaking 6502 apart
Replies: 212
Views: 68897

Re: Breaking 6502 apart

The triangle looks like half a square to me... :-p
by zellyn
Fri Apr 12, 2013 7:56 pm
Forum: Emulation and Simulation
Topic: 6502 Klaus Test Program Question
Replies: 29
Views: 8777

Re: 6502 Klaus Test Program Question

I actually had pretty good luck doing test-driven development: run the test, wait for it to break, fix the error, repeat.

I recommend Bruce Clark's decimal mode tests for figuring out bugs there.

You can see how I load and run the tests here: https://github.com/zellyn/go6502/blob/master/tests ...
by zellyn
Fri Mar 29, 2013 5:49 pm
Forum: Programming
Topic: Functional Test for the NMOS 6502 - request for verification
Replies: 202
Views: 130218

Re: Functional Test for the NMOS 6502 - request for verifica

@whartung: If you simply want an unmodified compilation of the binary, you can grab it from my repo and load it at $000A. However, I strongly recommend having a listing handy with annotated memory addresses...
by zellyn
Thu Mar 28, 2013 6:20 pm
Forum: Programming
Topic: Functional Test for the NMOS 6502 - request for verification
Replies: 202
Views: 130218

Re: Functional Test for the NMOS 6502 - request for verifica

The cl-6502 github repo does have an up-to-date version, thanks to BigEd's pull request. The authoritative source is the "Downloads" section of http://2m5.de

I have a version here too: https://github.com/zellyn/go6502/tree/master/tests

Beware that the lowest referenced memory address is $000A, so ...
by zellyn
Thu Mar 28, 2013 3:21 pm
Forum: Programming
Topic: Functional Test for the NMOS 6502 - request for verification
Replies: 202
Views: 130218

Re: Functional Test for the NMOS 6502 - request for verifica

whartung, here's what I've been doing.

I set up an Ubuntu VirtualBox image, with a shared folder. I then downloaded and installed the 6502 assembler from http://www.kingswood-consulting.co.uk/assemblers/, and used the command line specified in the functional test source. It works just fine for me ...
by zellyn
Thu Mar 28, 2013 12:40 am
Forum: Programming
Topic: Functional Test for the NMOS 6502 - request for verification
Replies: 202
Views: 130218

Re: Functional Test for the NMOS 6502 - request for verifica

I've been running it in VirtualBox, with a shared folder.
by zellyn
Mon Mar 11, 2013 3:59 pm
Forum: Programming
Topic: Functional Test for the NMOS 6502 - request for verification
Replies: 202
Views: 130218

Re: Functional Test for the NMOS 6502 - request for verifica

Ugh. Serves me right for making up examples without checking. I'll get back here when I have a chance to re-break my emulator.
by zellyn
Mon Mar 11, 2013 3:13 pm
Forum: Programming
Topic: Functional Test for the NMOS 6502 - request for verification
Replies: 202
Views: 130218

Re: Functional Test for the NMOS 6502 - request for verifica

Klaus2m5: yes, the ignored reads don't have any effect without other hardware attached :-)

Unfortunately, I didn't write down the exact instruction that failed, and I fixed all of them at the same time. It was something like STA $D0,y - with y > $30: it was writing to page 1, because I was doing a ...
by zellyn
Mon Mar 11, 2013 1:28 am
Forum: Programming
Topic: Functional Test for the NMOS 6502 - request for verification
Replies: 202
Views: 130218

Re: Functional Test for the NMOS 6502 - request for verifica

FYI, I am currently running my gate-level emulation in parallel with my instruction-level emulation, and finding discrepancies. Most are missing ignored reads.

However, it appears I managed to pass the functional tests with ZP,x and ZP,y instructions that would read from page 1 when the ZP address ...
by zellyn
Tue Mar 05, 2013 4:52 pm
Forum: Programming
Topic: Functional Test for the NMOS 6502 - request for verification
Replies: 202
Views: 130218

Re: Functional Test for the NMOS 6502 - request for verifica

Aah. Of course. Thanks!

I'll probably just write a sed script to stick that in there each time. :-)

fyi, right now I'm running your test suite against my first pass at a naive go-language translation of perfect6502. I expect it to take somewhere around three days, although I might get bored and ...
by zellyn
Mon Mar 04, 2013 5:54 pm
Forum: Programming
Topic: Functional Test for the NMOS 6502 - request for verification
Replies: 202
Views: 130218

Re: Functional Test for the NMOS 6502 - request for verifica

While you're in there changing things, I had one other idea: I find myself recompiling the latest version of your test, then checking the listing to set the "success" address in my test code (https://github.com/zellyn/go6502/blob/master/tests/functional_test.go). How about putting the "success ...
by zellyn
Sat Mar 02, 2013 4:04 pm
Forum: Programming
Topic: Functional Test for the NMOS 6502 - request for verification
Replies: 202
Views: 130218

Re: Functional Test for the NMOS 6502 - request for verifica

Fantastic!

As an aside, have you thought about putting the test suite on github? I've noticed myself (and seen links posted by others) pulling up https://github.com/redline6561/cl-6502/blob/master/tests/6502_functional_test.a65 in a browser, just because it's easy to check quickly without ...