6502 Emulator Made in QBasic 4.5

Programming the 6502 microprocessor and its relatives in assembly and other languages.
Post Reply
Beta
Posts: 2
Joined: 14 Nov 2002

6502 Emulator Made in QBasic 4.5

Post by Beta »

Hello everyone...

This may sound sorta odd, but I'm planning a project, of which making a form of NES emulator in QBasic 4.5. I have seen this done, however, not so well. Because I have no real help Codeing-wise, I have to do it all by myself, and I need a lot of into on how the 6502 works, eg, machine-code commands and such.

Any help would be greatly appreciated.
User avatar
Mike Naberezny
Site Admin
Posts: 296
Joined: 30 Aug 2002
Location: Northern California
Contact:

Re: QB NES Emulator

Post by Mike Naberezny »

Hi,

Sounds interesting. Take a look at the resources in the datasheets section on 6502.org which will show you the manufacturers' datasheets for most of the 65xx parts. Then, if you still have questions, this is an excellent place to ask them.

Regards,
Mike
Beta
Posts: 2
Joined: 14 Nov 2002

Post by Beta »

Is there anything in there about the 6502? I looked, however aren't seeing anything about the 6502 specificly.

Edit:
I have found something good, the Opcodes in the Tutorial section, that'll help out a LOT.
User avatar
Mike Naberezny
Site Admin
Posts: 296
Joined: 30 Aug 2002
Location: Northern California
Contact:

6502 Datasheets

Post by Mike Naberezny »

The datasheets archive has datasheets from several manufacturers for both CMOS and NMOS versions of the 6502 microprocessor.

CMOS versions of the 6502:

California Micro Devices 65SC02
http://www.6502.org/datasheets/g65sc02.pdf

Commodore Semiconductor Group (MOS) 65CE02
http://www.6502.org/datasheets/65ce02.zip

Western Design Center W65C02S
http://www.6502.org/datasheets/w65c02s.pdf


NMOS versions of the 6502:

Commodore Semiconductor Group (MOS) 6500-series (inc. 6502)
http://www.6502.org/datasheets/csg6500.pdf

Rockwell 6500-series (inc. 6502)
http://www.6502.org/datasheets/r650x.pdf

-Mike
Isolationist
Posts: 8
Joined: 11 Mar 2003

Post by Isolationist »

I was just about to make something similar. However I am going to set it up so there is a sort of 20x2 LCD alphanumeric display emulator, like on some laser printers. I intend to use it to perfect my programming as a friend and I are going to attempt to make a simple 6502 microcomputer.

Actually I think he is thinking about making it Z80 based, but I'll see if I can get him to change his mind (Z80's are a tad too complicated anyway).

I like your idea about the NES emulator, however I would recommend getting the memory map of the NES and some specifyfcations for the graphics controler.

Have fun!!!
There is no expedient to which a man will not go to avoid the labour of thinking.
usotsuki
Posts: 70
Joined: 23 Dec 2002

Post by usotsuki »

btw, wouldn't be the first time. There was a program called (IIRC) uNESsential which aimed at that. Also, I think Vortendo was written in Visual BASIC? ;)

The NES had ROM cartridges with built-in banking hardware. The memory map varies from game to game.

Try nesdev.parodius.com - but ymmv.

-uso.
Isolationist
Posts: 8
Joined: 11 Mar 2003

Post by Isolationist »

I know its unrelated but Visual BASIC? :evil:
There is no expedient to which a man will not go to avoid the labour of thinking.
Post Reply