nedoPC.org

Electronics hobbyists community established in 2002
Atom Feed | View unanswered posts | View active topics It is currently 18 Mar 2024 23:46



Reply to topic  [ 1 post ] 
A 6502 emulator on Go 
Author Message
Doomed
User avatar

Joined: 04 Jan 2016 09:15
Posts: 648
Location: Russia, S.- Peterburg
Reply with quote
Ссылка на проект: https://github.com/beevik/go6502

Quote:
go6502 is a collection of go packages that emulate a 6502 or 65C02 CPU. It includes a CPU emulator, a cross-assembler, a disassembler, a debugger, and a host that wraps them all together.

The interactive go6502 console application in the root directory provides access to all of these features.


go6502 - это набор пакетов для языка программирования GO.

Что умеет? Эмуляция процессоров 6502 или 65C02, кросс-ассемблер, дизассемблер, отладчик и хост, который объединяет их все вместе.

Интерактивное консольное приложение go6502 в корневом каталоге обеспечивает доступ ко всем этим функциям.

Code:
> $ go6502

* help
go6502 commands:
    annotate         Annotate an address
    assemble         Assemble commands
    breakpoint       Breakpoint commands
    databreakpoint   Data breakpoint commands
    disassemble      Disassemble code
    evaluate         Evaluate an expression
    execute          Execute a go6502 script file
    exports          List exported addresses
    list             List source code lines
    load             Load a binary file
    memory           Memory commands
    quit             Quit the program
    register         View or change register values
    run              Run the CPU
    set              Set a configuration variable
    step             Step the debugger

* load sample.bin
Loaded source map from 'sample.map'.
Loaded 'sample.bin' to $1000..$10FF.
* disasm $1000
Command not found.
* disassemble $1000
1000-   A9 EE       LDA   #$EE     
1002-   A9 FE       LDA   #$FE     
1004-   A9 80       LDA   #$80     
1006-   A9 7F       LDA   #$7F     
1008-   A9 5A       LDA   #$5A     
100A-   20 21 10    JSR   $1021   
100D-   20 24 10    JSR   $1024   
1010-   20 3E 10    JSR   $103E   
1013-   20 4E 10    JSR   $104E   
1016-   F0 08       BEQ   $1020   
* quit

_________________
"Ученье свет, а неученье — тьма. Дело мастера боится, и коль крестьянин не умеет сохою владеть — хлеб не родится." (С)


28 Aug 2021 03:00
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.