Updates to write_ops.py

found a table showing patterns in the way opcodes are numbered here:
wiki.nesdev.com/w/index.php/CPU_unofficial_opcodes
using these patterns to automate the process of writing the switch
statements for opcodes and even some of the functions(just have to use
different address modes)