mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-03-01 00:30:17 +00:00
source code formatting
This commit is contained in:
parent
c80017e0b6
commit
bde56f4406
@ -76,8 +76,8 @@ public class DumpCommand extends ReadOnlyDiskImageCommandOptions {
|
|||||||
fn = this::formatDisassembly;
|
fn = this::formatDisassembly;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Option(names = "--raw", description = "Raw Binary dump.")
|
@Option(names = "--raw", description = "Raw Binary dump.")
|
||||||
public boolean raw = false;
|
public boolean raw = false;
|
||||||
|
|
||||||
public String formatHexDump(Options options, byte[] data) {
|
public String formatHexDump(Options options, byte[] data) {
|
||||||
return AppleUtil.getHexDump(data);
|
return AppleUtil.getHexDump(data);
|
||||||
@ -122,17 +122,17 @@ public class DumpCommand extends ReadOnlyDiskImageCommandOptions {
|
|||||||
private DisassemblerOptions disassemblerOptions = new DisassemblerOptions();
|
private DisassemblerOptions disassemblerOptions = new DisassemblerOptions();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class DisassemblerOptions {
|
public static class DisassemblerOptions {
|
||||||
@Option(names = {"-a", "--address"}, converter = IntegerTypeConverter.class,
|
@Option(names = {"-a", "--address"}, converter = IntegerTypeConverter.class,
|
||||||
description = "Starting Address.")
|
description = "Starting Address.")
|
||||||
private int address = 0x800;
|
private int address = 0x800;
|
||||||
|
|
||||||
@Option(names = {"-o", "--offset"}, converter = IntegerTypeConverter.class,
|
@Option(names = {"-o", "--offset"}, converter = IntegerTypeConverter.class,
|
||||||
description = "Number of bytes to skip into file before disassembling.")
|
description = "Number of bytes to skip into file before disassembling.")
|
||||||
private Optional<Integer> offset = Optional.empty();
|
private Optional<Integer> offset = Optional.empty();
|
||||||
|
|
||||||
@ArgGroup(multiplicity = "0..1")
|
@ArgGroup(multiplicity = "0..1")
|
||||||
private InstructionSetSelection instructionSet = new InstructionSetSelection();
|
private InstructionSetSelection instructionSet = new InstructionSetSelection();
|
||||||
|
|
||||||
public static class InstructionSetSelection {
|
public static class InstructionSetSelection {
|
||||||
private InstructionSet instructionSet = InstructionSet6502.for6502();
|
private InstructionSet instructionSet = InstructionSet6502.for6502();
|
||||||
@ -140,8 +140,8 @@ public class DumpCommand extends ReadOnlyDiskImageCommandOptions {
|
|||||||
public InstructionSet get() {
|
public InstructionSet get() {
|
||||||
return this.instructionSet;
|
return this.instructionSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Option(names = "--6502", description = "MOS 6502. (Default)")
|
@Option(names = "--6502", description = "MOS 6502. (Default)")
|
||||||
public void select6502(boolean flag) {
|
public void select6502(boolean flag) {
|
||||||
this.instructionSet = InstructionSet6502.for6502();
|
this.instructionSet = InstructionSet6502.for6502();
|
||||||
}
|
}
|
||||||
@ -160,7 +160,7 @@ public class DumpCommand extends ReadOnlyDiskImageCommandOptions {
|
|||||||
@Option(names = { "--6502S" }, description = "MOS 6502 with SWEET16 switching.")
|
@Option(names = { "--6502S" }, description = "MOS 6502 with SWEET16 switching.")
|
||||||
public void select6502Switching(boolean flag) {
|
public void select6502Switching(boolean flag) {
|
||||||
this.instructionSet = InstructionSet6502Switching.withSwitching();
|
this.instructionSet = InstructionSet6502Switching.withSwitching();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user