Skip to content

Instantly share code, notes, and snippets.

View agatti's full-sized avatar

Alessandro Gatti agatti

  • Montefalco, Italy
View GitHub Profile
/*
A0: Source buffer (word-aligned)
A1: Target buffer (byte-aligned)
A2: Samples count (in bytes)
*/
a_law_encode_buffer:
li t0, 0b0100000000000000 /* Prepare source match mask */
// Use the selected value as an offset for a reference with an user-chosen base block.
// @author Alessandro Gatti
// @category References
// @keybinding
// @menupath
// @toolbar
import docking.DialogComponentProvider;
import docking.widgets.table.AbstractSortedTableModel;
import docking.widgets.table.GBooleanCellRenderer;
@agatti
agatti / SignedBiDecleDataType.java
Created May 13, 2020 08:29
CP1600 SBIDECLE data type Raw
package ghidra.program.model.data;
import java.math.BigInteger;
import ghidra.docking.settings.FormatSettingsDefinition;
import ghidra.docking.settings.Settings;
import ghidra.program.model.mem.MemBuffer;
import ghidra.program.model.scalar.Scalar;
public class SignedBiDecleDataType extends AbstractIntegerDataType {
@agatti
agatti / BiDecleDataType.java
Created May 13, 2020 08:28
CP1600 BIDECLE data type
package ghidra.program.model.data;
import java.math.BigInteger;
import ghidra.docking.settings.FormatSettingsDefinition;
import ghidra.docking.settings.Settings;
import ghidra.program.model.mem.MemBuffer;
import ghidra.program.model.scalar.Scalar;
public class BiDecleDataType extends AbstractIntegerDataType {
@agatti
agatti / keybase.md
Created September 11, 2017 15:54
keybase.md

Keybase proof

I hereby claim:

  • I am agatti on github.
  • I am agatti (https://keybase.io/agatti) on keybase.
  • I have a public key ASBnF6I13uZizE99bgbA4Z_53tMmvGmlP164RNEusqGC7wo

To claim this, I am signing this object:

@agatti
agatti / swd.c
Last active November 1, 2016 13:37
/*
* This file is part of the Bus Pirate project
* (http://code.google.com/p/the-bus-pirate/).
*
* Written and maintained by the Bus Pirate project.
*
* To the extent possible under law, the project has
* waived all copyright and related or neighboring rights to Bus Pirate. This
* work is published from United States.
*