nesdev.com
http://forums.nesdev.com/

Decent 6502 emulator?
http://forums.nesdev.com/viewtopic.php?f=23&t=14629
Page 1 of 1

Author:  PrimordialHelios [ Sat Aug 06, 2016 9:38 pm ]
Post subject:  Decent 6502 emulator?

Does anybody know of a decent emulator for the 6502? I really want to get into it, but the only one I've found that actually works is 6502js. I've tried Apple ][ and C64 emulators, but I couldn't get either of them to run an assembler.

Does anyone have any emulators, or good walkthroughs for setting up an APPLe ][/C64 emu?

Author:  dougeff [ Sat Aug 06, 2016 10:40 pm ]
Post subject:  Re: Decent 6502 emulator?

Apple II...you can type assembly directly in assembly mode. This video shows how to get into assembly mode...and type in instructions.

https://www.youtube.com/watch?v=laxVu4t3Ndw

Author:  dougeff [ Sat Aug 06, 2016 11:10 pm ]
Post subject:  Re: Decent 6502 emulator?

It took me a minute to remember how this works...

(press 'RESET' button to get ] prompt)
CALL-151
!
300:LDA #$00

Worked in the Apple IIe js emulator.

Attachments:
Apple2.png
Apple2.png [ 40.7 KiB | Viewed 1899 times ]

Author:  koitsu [ Sun Aug 07, 2016 1:17 am ]
Post subject:  Re: Decent 6502 emulator?

I'm quite familiar with the old Apple II Monitor and mini-assembler (it's also available on the IIGS; same methodology; ROM03 models support a native CDA that lets you drop to the monitor easily, saving having to Ctrl-Reset at the right time and use CALL -151. KEGS, ActiveGS, etc. all work fine. However several Monitor features were removed on the IIGS, such as Step/Trace).

If all you're looking to do is bang out code, yup, it's sufficient. I suggest writing out your code on paper or notepad first, however, because typos/mistakes will often require you to re-enter long sections of the program over again (e.g. if something is off by one byte). If you're looking for doing a full project in assembly on a 6502 system, consider the Merlin 8 assembler.

If you need documentation for the Monitor (this is what you enter using CALL -151) or the mini-assembler (what you get when doing "!" in the Monitor), just dig around using the previous terms. This stuff is "old" but documented.

Author:  TOUKO [ Sun Aug 07, 2016 3:45 am ]
Post subject:  Re: Decent 6502 emulator?

you have the skilldrick's one(it's a web 6502 emulator) :
https://skilldrick.github.io/easy6502/

I don't know if you want just a 6502 emulator or a whole machine .

Author:  dougeff [ Sun Aug 07, 2016 7:24 am ]
Post subject:  Re: Decent 6502 emulator?

Another good thing about the Appe iie or iigs...

You can 'call' Assembly subroutines from the BASIC interpreter. As in...you can mix the 2 programming languages.

Now, programming a game on the Apple II...not easy unless you're interested in making a text adventure (Zork). Which by the way is available on the same Apple II js emulator... including my favorite game 'Suspended'. I actually had some of these games as a kid.

Author:  dougeff [ Sun Aug 07, 2016 7:30 am ]
Post subject:  Re: Decent 6502 emulator?

Interesting side note...the IIGS (often mentioned here), has a 65816 processor. When you boot it up, it takes you to a screen that was similar to early Windows / McIntosh GUI . But, some button* put it in emulation mode, and it was very good at emulating its 6502 younger brothers.

I used to use my IIGS as a word processor. I wrote my homework on it. Really.

* I can't remember how to get the IIGS into the ] prompt. Maybe you had to boot with a different disk. I read the entire 200+ page manual just now, and didn't see any mention of it. :(

EDIT: I think I found it...it may have been 'OPEN APPLE+CTRL+ESC' button combination, to get to the old IIe screen with a ] prompt.

Author:  tepples [ Sun Aug 07, 2016 8:05 am ]
Post subject:  Re: Decent 6502 emulator?

The HGR mode on the Apple II Plus/IIe makes it practical to use square tiles. If you draw your tiles as 14 half-pixels (2 bytes) wide and 12 pixels high, they'll show up on a standard TV as perfect squares. (That's because the HGR half-pixels have a 6:7 pixel aspect ratio.) This implies a playfield of 20x16 cells on the 280x192 half-pixel screen, which is great for something like Dr. Mario or Columns or Puyo or Zoop. Interestingly enough, the four colors in Zoop (magenta, green, blue, and orange) are the same four colors in Apple II HGR, and the 20x14-cell playfield in PC Zoop is about the right size, which leads me to thinking that Hookstone originally prototyped it on an Apple II before having it ported it to every fourth- and fifth-generation console it could get its hands on.

The IIGS-exclusive super hires mode is a little harder to use without the Mac-like GS/OS running, but it has a 3:4* pixel aspect ratio identical to that of the Commodore 64 and close to that of the Capcom CPS. This means 8x6 or 16x12 will appear square.

Is there still a community of developers of new Apple IIe and IIGS games?


* The official spec for super hires states a slightly wider 5:6 PAR. I'm going by how its pixel clock relates to the Rec. 601 frame size, which is what you'll end up seeing if you record the IIGS's composite output or if you record its RGB output through a SuperGun-type adapter.

Author:  tokumaru [ Sun Aug 07, 2016 1:21 pm ]
Post subject:  Re: Decent 6502 emulator?

If your goal is to learn 6502 assembly before coding for machines that use that CPU, I suggest you do it in an isolated environment where you don't have to deal with any platform's specific details. Here's what I used when learning, and still use sometimes to test small snippets of code: http://www.exifpro.com/utils.html

You just need to start a program with .org $8000 (or almost any other address - this is so the assembler can tell where to place your program in memory) and then you can start typing 6502 code. Then there's a button to assemble the code, and another to debug the result. When debugging you can run the code all at once, step through it, etc., while optionally watching registers, flags, memory, and so on.

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/