Search found 383 matches

by nippur72
Mon Oct 12, 2015 11:07 am
Forum: Emulation and Cross Development
Topic: 6502 emu help needed!
Replies: 30
Views: 2844

Re: 6502 emu help needed!

@pixel the author made an earlier version that is named fake6502
by nippur72
Fri Oct 09, 2015 2:55 am
Forum: Emulation and Cross Development
Topic: shadowVIC – a lightweight VIC-20 emulator
Replies: 33
Views: 2910

Re: shadowVIC – a lightweight VIC-20 emulator

What I suggest, is to add unit testing to your CPU emulation.

Something simple like this:

Code: Select all

execute(169,1);  // lda #$01
assert(cpu.a == 1);
by nippur72
Thu Oct 08, 2015 9:24 am
Forum: Emulation and Cross Development
Topic: 6502 emu help needed!
Replies: 30
Views: 2844

Re: 6502 emu help needed!

Talking of 6502 emulators written in C, I've found this other: http://sourceforge.net/p/moarnes/code/ci/master/tree/src/6502.c It's not cycle-exact, but gives you the number of cycles taken per instruction, which is useful to keep the VIC chip at the same pace of the CPU (by running the same number ...
by nippur72
Tue Sep 29, 2015 9:56 am
Forum: Emulation and Cross Development
Topic: 6502 emu help needed!
Replies: 30
Views: 2844

Re: 6502 emu help needed!

I think a C/asm cycle-exact emulator should run fine even on a slow machine (e.g. 200Mhz pentiums).
by nippur72
Mon Sep 28, 2015 9:27 am
Forum: Emulation and Cross Development
Topic: 6502 emu help needed!
Replies: 30
Views: 2844

Re: 6502 emu help needed!

http://6502.org has a lot of good info, but most likely you already know of it. I suggest you to grab the code from open source emulators (not only vic-20) and study them. Start with a simple one (not VICE!) and look for an emulator that is written in your favourite language. 6502 emulators fall in...
by nippur72
Fri Sep 25, 2015 9:20 am
Forum: Emulation and Cross Development
Topic: Good emulator for mobile?
Replies: 23
Views: 2218

Re: Good emulator for mobile?

good! when people publish something on github it's always a good thing. :D

Regarding my project, unfortunately it has a low-priority among other side-projects, so it ain't advanced much :cry:
by nippur72
Tue Sep 01, 2015 5:04 am
Forum: Emulation and Cross Development
Topic: Good emulator for mobile?
Replies: 23
Views: 2218

Re: Good emulator for mobile?

I was thinking that since it's C, one might use macros e.g. #define writemem(a,v) (if(mpermission[(a)]) m[(a)] = (v)) so that's more easy to switch back and forth from "fast and inaccurate" and "slow and precise". Even the micro-code instruction ("e_xxx") could be writt...
by nippur72
Mon Aug 31, 2015 7:07 am
Forum: Emulation and Cross Development
Topic: Good emulator for mobile?
Replies: 23
Views: 2218

Re: Good emulator for mobile?

@pixel another question, I see in your emulator VIC's memory is an array (`m[]`), how do you deal with the fact that some zones are ROM and some others are not even physically connected? (Do you assume you are emulating a 64KRAM VIC 20 ?)
by nippur72
Fri Aug 28, 2015 11:28 am
Forum: Emulation and Cross Development
Topic: Good emulator for mobile?
Replies: 23
Views: 2218

Re: Good emulator for mobile?

Looking (superficially) at the code, I haven't found any reference to number of cycles spent per instruction. That would be useful to keep the VIC in synch with the CPU, running the same number of cycles.
by nippur72
Thu Aug 27, 2015 7:52 am
Forum: Emulation and Cross Development
Topic: Good emulator for mobile?
Replies: 23
Views: 2218

Re: Good emulator for mobile?

> Are you sure you want to go down that road!? the alternative would be learning android programming, ndk and all the rest, honestly I'm not in the right mood. I would like to go for the browser/HTML if possible, even with the hack of ASM.JS. Optimizing current JavaScript engines would lead only to ...
by nippur72
Thu Aug 27, 2015 4:48 am
Forum: Emulation and Cross Development
Topic: Good emulator for mobile?
Replies: 23
Views: 2218

Re: Good emulator for mobile?

@pixel I've written almost nothing yet (apart from the keyboard), I'm reviewing existing emulators (non vic-20 too) to reduce the effort to minimum.

Don't know about your C emulator, it would be perfect to compile it via Emscripten to JavaScript. Is it open source? Where I can find it?
by nippur72
Wed Aug 26, 2015 11:51 am
Forum: Games
Topic: Boray Gammon (Now V2.0)
Replies: 106
Views: 13845

Re: Boray Gammon

7-0 wow, I still barely manage to make a win!
by nippur72
Wed Aug 26, 2015 4:39 am
Forum: Emulation and Cross Development
Topic: Good emulator for mobile?
Replies: 23
Views: 2218

Re: Good emulator for mobile?

the prototype I'm working has still the CPU written in plain JavaScript, so it's very slow, around 5x-10x slower. But as I've said in another thread I'm experimenting with ASM.JS that hopefully will make it run a lot faster, hopefully it will run at 1x speed on mobile. The only limitation is that yo...
by nippur72
Tue Aug 25, 2015 9:19 am
Forum: Emulation and Cross Development
Topic: Good emulator for mobile?
Replies: 23
Views: 2218

Re: Good emulator for mobile?

If I succeed, it will be something like this:

(keyboard is experimental, I have to rearrange keys)

proto.jpg
proto.jpg (237.17 KiB) Viewed 1025 times

Go to advanced search