Categorygithub.com/IntuitionAmiga/six5go2
repositorypackage
0.0.0-20230508111923-067d2fa203c9
Repository: https://github.com/intuitionamiga/six5go2.git
Documentation: pkg.go.dev

# README

6502 Emulator, Debugger and Disassembler

six5go2

Six5go2 - 6502 Emulator and Disassembler in Golang (c) 2022 Zayn Otley

USAGE - ./six5go2 target_filename hex_entry_point dis/mon hex

EXAMPLE - ./six5go2 AllSuiteA.bin 4000 mon

EXAMPLE - ./six5go2 AllSuiteA.bin 4000 dis

EXAMPLE - ./six5go2 AllSuiteA.bin 4000 dis hex

Choose Disassembler or Machine Monitor at command line with dis or mon parameter.

Specify hex as optional parameter with the disassembler to have opcodes as comments in the source output.

To build the project:

git clone https://github.com/intuitionamiga/six5go2.git
cd six5go2
go build -ldflags="-s -w" .

To run the disassembler on the AllSuiteA 6502 opcode test suite:

./six5go2 AllSuiteA.bin 4000 dis

To run the disassembler with hex opcodes as comments:

./six5go2 AllSuiteA.bin 4000 dis hex

To run the machine monitor:

./six5go2 AllSuiteA.bin 4000 mon