6502 simulator/emulator on iOS?

Topics pertaining to the emulation or simulation of the 65xx microprocessors and their peripheral chips.
shawnleblanc
Posts: 7
Joined: 20 Jun 2010

6502 simulator/emulator on iOS?

Post by shawnleblanc »

Hello!

It's been a while since I last visited!

Are there any 6502 simulators for iOS? An app that would let me write assembly code in it and have it run on an emulated machine. Kinda like 6502asm.com, but as an app. I don't imagine there are many, if at all, but I figured I'd ask. Google didn't reveal anything obvious.

Thanks!
Shawn
User avatar
BigEd
Posts: 11463
Joined: 11 Dec 2008
Location: England
Contact:

Re: 6502 simulator/emulator on iOS?

Post by BigEd »

I'd add easy6502 for the in-browser experience, but I don't know of a native app. You're most likely to find a games emphasis rather than a programming emphasis, I expect.
(There are more in-browser emulators: see here for a curated selection, and here on this site of course.)
White Flame
Posts: 704
Joined: 24 Jul 2012

Re: 6502 simulator/emulator on iOS?

Post by White Flame »

Does Apple still have rules about not allowing end-user coding in their published apps? I know some retro computer emulators ran afoul of this in the past, so that might affect the situation.
Procrastin8
Posts: 40
Joined: 07 Jul 2020
Location: Amsterdam, NL

Re: 6502 simulator/emulator on iOS?

Post by Procrastin8 »

I know this thread is really old but I have built a 65C02 simulator for iPadOS. I have not actually submitted it for review as there are still plenty of things that are missing (assembling, disassembling, syntax highlighting) and I am concerned about apple simply rejecting it, but I have added some pretty major limitations to hopefully mitigate some of that risk, namely:

• this is a learning tool, it is not meant to play commodore or NES games, so the only code it will run, is code I have included or code you write yourself
• it does not simulate cycle count or speed. it doesn't even "run", it does single stepping only
• it has only one system definition (devices, memory layout, etc) pre-defined by me, largely focused around the Ben Eater (and therefore Garth Wilson) sytem layout

In the future, I hope to be able to lift some (but definitely not all) of these restrictions. Again, my focus is on testing my own code, not trying to run abandonware, that focus will not change. But if anyone is interested in trying it (provided they approve my Test Flight beta) DM me :)

Included is a current screenshot of the debugging view
Attachments
IMG_2941FB935914-1.jpeg
shawnleblanc
Posts: 7
Joined: 20 Jun 2010

Re: 6502 simulator/emulator on iOS?

Post by shawnleblanc »

Nice! Keep going!
Aloha6502
Posts: 69
Joined: 17 Feb 2021

Re: 6502 simulator/emulator on iOS?

Post by Aloha6502 »

Procrastin8 wrote:
I know this thread is really old but I have built a 65C02 simulator for iPadOS. I have not actually submitted it for review as there are still plenty of things that are missing (assembling, disassembling, syntax highlighting) and I am concerned about apple simply rejecting it, but I have added some pretty major limitations to hopefully mitigate some of that risk, namely:

• this is a learning tool, it is not meant to play commodore or NES games, so the only code it will run, is code I have included or code you write yourself
• it does not simulate cycle count or speed. it doesn't even "run", it does single stepping only
• it has only one system definition (devices, memory layout, etc) pre-defined by me, largely focused around the Ben Eater (and therefore Garth Wilson) sytem layout

In the future, I hope to be able to lift some (but definitely not all) of these restrictions. Again, my focus is on testing my own code, not trying to run abandonware, that focus will not change. But if anyone is interested in trying it (provided they approve my Test Flight beta) DM me :)

Included is a current screenshot of the debugging view
There is this on the App Store, been there for a decade already

http://alsoftiphone.com/i41CXplus/

and it allows full featured programming. It is an excellent emulation of that calculator platform. It's basically a little computer, not really calculator.

For an iPad/iPhone 6502 emulator, especially if I were to pay money for it (and if you go that route please make a PRO and a LITE version instead of in-app purchases that I need to "Restore Purchase" for new installs), I would want a decent text editor and assembly functions, and debugging of course. Just as simple as the web-based Easy6502, with basic keyboard input and simple memory-mapped graphics.

Actually recreating the AIM-65 would be cool, including thermal printer. Look at the above app for its excellent thermal printer simulator. I talked to the author before, and he said he actually had to carefully look at the colors that came out of real thermal paper to try and reproduce it. His app is a work of art and labor of love. Very detailed reproduction/emulation.
User avatar
spicyjack
Posts: 1
Joined: 09 Jul 2021

Re: 6502 simulator/emulator on iOS?

Post by spicyjack »

I'm guessing the author of this app is not on this forum, or they might have spoken up already, but there's an iOS app in the App Store called "VirtualKIM" that will emulate a 6502, with a keypad + 7-seg LEDs (KIM-1) or in terminal mode (KIM-1 or Apple-1). The author just added a basic assembler in the latest release.

https://apps.apple.com/us/app/virtualki ... mpt=uo%3D4

It's a free app.
User avatar
jfoucher
Posts: 94
Joined: 27 Dec 2020
Location: France
Contact:

Re: 6502 simulator/emulator on iOS?

Post by jfoucher »

spicyjack wrote:
It's a free app.
The app looks good, it’s a pity it’s only for iOS 14...
Jonathan Foucher

Take a look at the Planck 6502 computer.
User avatar
Dr Jefyll
Posts: 3525
Joined: 11 Dec 2009
Location: Ontario, Canada
Contact:

Re: 6502 simulator/emulator on iOS?

Post by Dr Jefyll »

Welcome, spicyjack ! Thanks for sharing that with us.

-- Jeff
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
User avatar
floobydust
Posts: 1394
Joined: 05 Mar 2013

Re: 6502 simulator/emulator on iOS?

Post by floobydust »

jfoucher wrote:
spicyjack wrote:
It's a free app.
The app looks good, it’s a pity it’s only for iOS 14...
Worse yet, on a Mac machine, it's only written for the newer hardware using the M1 chip. Sadly, Apple is moving away from Intel, so there goes my virtual machine platform in time. By time the transition is over, I'll probably be too old to care.

Also wondering how much additional work it would be (for the author) to upgrade to the 65C02 processor.
User avatar
jfoucher
Posts: 94
Joined: 27 Dec 2020
Location: France
Contact:

Re: 6502 simulator/emulator on iOS?

Post by jfoucher »

floobydust wrote:
Also wondering how much additional work it would be (for the author) to upgrade to the 65C02 processor.
In my experience it’s only a few hours because the additional instructions are simple ones. (In c or other “high” level languages. In ARM assembly it would probably take me Infinity time.)
Jonathan Foucher

Take a look at the Planck 6502 computer.
User avatar
jfoucher
Posts: 94
Joined: 27 Dec 2020
Location: France
Contact:

Re: 6502 simulator/emulator on iOS?

Post by jfoucher »

So virtualkim looked good. I love the Kim-1 and have built a Kim Uno. You can probably understand my frustration with the app not running on my iPhone 6 (iOS 12). So in the last few days I made a Kim-1 emulator that runs on everything from iOS 9.3. This means you can repurpose even an iPhone 4S to run it! A Kim-1 in your pocket at all times isn’t that great? I have also managed to have it build automatically for Mac OS even though the interface is a bit ugly (10.15 only though :/ but works on intel processors )
If you have a Mac with Xcode you can download the project on my github.
Otherwise well I don’t really know, I don’t feel like paying apple 100€ just to put up this free app... Any suggestions on this front?

The feature set is pretty bare right now, having only the keypad and 6 digits display. The emulation runs at about 7mhz on my phone but there is a way to limit it to 1 MHz

What should I work on next ? A serial terminal or a way to easily upload code to ram ? Do you have any good programs for the Kim-1 that I should include by default ?
Thanks !

Edit: Download the Mac version from here: https://github.com/jfoucher/KimOne/releases/tag/V0.0.1
Attachments
0D7607FD-F7BC-4C92-BA70-51AAE269F779.png
Jonathan Foucher

Take a look at the Planck 6502 computer.
ThisWayUp
Posts: 49
Joined: 03 Jul 2021

Re: 6502 simulator/emulator on iOS?

Post by ThisWayUp »

sweet! i have a really old ipod touch just sitting in a drawer ill have to see what version of iOS its running.
User avatar
jfoucher
Posts: 94
Joined: 27 Dec 2020
Location: France
Contact:

Re: 6502 simulator/emulator on iOS?

Post by jfoucher »

Ohh, great idea, I'l check mine as well ! Although I seem to remember it was much older than that :(

Regarding the application I presented, I have got the serial terminal with tinybasic working!

Next will be a way to upload our own programs to RAM, to replace the tape input of the real KIM-1.
Jonathan Foucher

Take a look at the Planck 6502 computer.
User avatar
jfoucher
Posts: 94
Joined: 27 Dec 2020
Location: France
Contact:

Re: 6502 simulator/emulator on iOS?

Post by jfoucher »

Well my ipod touch is a second gen one, with iOS 4. Still works fine though!
Jonathan Foucher

Take a look at the Planck 6502 computer.
Post Reply