forked from tonyheadford/m68k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
7,574 additions
and
15 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
java -jar ../lib/reasm.jar test.asm MC68000 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Rom calls jmp 0x00fc00d2 | ||
rom start 0x00fc0000? | ||
rom start 0x00f00000? | ||
|
||
|
||
|
||
http://lallafa.de/blog/2013/06/added-segtracker-in-fs-uaes-debugger/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package m68k.cpu.assemble; | ||
|
||
/** | ||
* Date: 9-10-14 | ||
* Time: 20:40 | ||
*/ | ||
public class LabelOperand extends AssembledOperand { | ||
public LabelOperand(int pc, String operand) { | ||
super(operand, 0, pc); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package m68k.cpu.assemble; | ||
|
||
import m68k.cpu.InstructionHandler; | ||
import m68k.cpu.instructions.EXG; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
/** | ||
* Date: 9-10-14 | ||
* Time: 20:29 | ||
*/ | ||
public class Mnemonics { | ||
|
||
public static class Mnemonic { | ||
public final InstructionHandler handler; | ||
public final int src; | ||
public final int dst; | ||
|
||
public Mnemonic(InstructionHandler handler, int src, int dst) { | ||
this.handler = handler; | ||
this.src = src; | ||
this.dst = dst; | ||
} | ||
} | ||
|
||
public static int DATA_REGISTER = 1; | ||
public static int ADDRESS_REGISTER = 2; | ||
|
||
private static Map<String, Mnemonic> mapping = new HashMap<String, Mnemonic>(); | ||
static { | ||
mapping.put("exg", new Mnemonic(new EXG(null), DATA_REGISTER | ADDRESS_REGISTER, DATA_REGISTER | ADDRESS_REGISTER)); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters