Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

cavaliercoder/go-m68k

Repository files navigation

go-m68k

GoDoc Build Status Go Report Card

This project contains a number of tools and libraries for emulating the Motorola 68000 chipset; used in devices like the Apple Macintosh, Sega Megadrive and Commodore Amiga.

WARNING This project is an incomplete work in progress.

The goal of this project is less about performance or competing with existing emulators. It's more about enabling a better development and learning experience for novices like me.

Installation

$ go get github.com/cavaliercoder/go-m68k/...

Example

Compile the following Motorola 68000 assembly using a supported compiler:

* Test 68000 simulator program
WRCHAR EQU 6 Trap # for write D1.B char to screen
 ORG 1000ドル
 LEA MESSAGE(PC),A0 Point A0 to start of message
NEXT MOVE.B (A0)+,D1 Get character, increment pointer
 BEQ.S FINISH Exit if end
 MOVE.B #WRCHAR,D0 Set up trap to write to screen
 TRAP #15 Write char. to screen
 BRA.S NEXT ..and loop back
FINISH STOP #2700ドル Halt
MESSAGE DC.B 'Hello world!',0ドルD,0ドルA,0
 END 1000ドル

Run the program:

$ m68k hello-world.h68
Hello world!

About

A Motorola 68000 Emulator written in Go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /