make fail by the error
/usr/bin/ld: main.o:(.bss+0x0): multiple definition of `nrow'; memory.o:(.bss+0x0): first defined here
/usr/bin/ld: main.o:(.bss+0x4): multiple definition of `ncol'; memory.o:(.bss+0x4): first defined here
fix definition of the global variables nrow and ncol.
This commit fixes the following behaviors:
Indirect X zero page addressing should always wrap and stay on zero page
BRK should disable interrupts
ADC in decimal mode should carry between nibbles based on adjusted,
not original values.
Writes of status register to the stack should always set M and should
set B on BRK/PHP and ~B on IRQ/NMI
Found and tested against
https://github.com/Klaus2m5/6502_65C02_functional_tests/blob/master/6502_functional_test.a65