6502 Design Thoughts

introduction

It seems to me there are at least two ways to implement a 6502 simulator.

  1. Create a representation of the 6502 assembly language (or create your own).

  2. Create a bytearray as actual byte memory and "execute" machine instructions using the bytearray.
Which one is better than the other depends of the project requirements and goals.

Note: There are probably more that two ways.

Thoughts

  1. The 6502 instructions to implement should include more that one memory access mode.

links

How to Convert Python string to byte array with Examples

Convert Byte to Hex in Python

Convert Hex to Byte in Python

What's the correct way to convert bytes to a hex string in Python 3?