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
--[[ | |
Generates a diagram for bitfields in a register, data type, or data structure. | |
The single arg is a comma separated list. | |
A normal entry is two elements, the first is the field name and the second is the bit width. | |
There are also directives, starting with !, to change the table formatting. | |
!SEP: | |
Inserts a visual break in the row, for grouping fields together into larger objects. | |
!WIDTH <N>: |
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
ARM_FUNC_ALIAS aeabi_ui2d floatunsidf | |
CFI_START_FUNCTION | |
teq r0, #0 | |
do_it eq, t | |
moveq r1, #0 | |
RETc(eq) | |
do_push {r4, r5, lr} @ sp -= 12 | |
.cfi_adjust_cfa_offset 12 @ CFA is now sp + previousOffset + 12 |
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
;; compiled with -O0 | |
ldr r2, .L14+56 | |
ldr r3, [r7, #52] | |
ldr r3, [r2, r3, lsl #2] | |
lsrs r3, r3, #2 | |
str r3, [r7, #28] | |
ldr r0, [r7, #28] | |
bl __aeabi_ui2d |
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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = [ ./hardware-configuration.nix ]; | |
# Use the systemd-boot EFI boot loader. |
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
rows and column numbers start at the bottom left | |
P0.2: USB pin D+ | |
P0.3: USB pin D- | |
P0.4: USB pin D+ pulldown (used during reset) | |
P2.0: USB pin D- pullup (used during reset) | |
P0.5: switch row 6 drive | |
P0.6: switch row 5 drive | |
P0.7: switch row 4 drive |
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
#include <stdio.h> | |
extern char *fw_data; | |
extern int fw_len; | |
// used to hold the RunOnlyOneUpdateTools mutex | |
extern HANDLE dword_458908; | |
// used to hold the first byte pair after the firmware header | |
extern int dword_45868c; |
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
#!/usr/bin/env python3 | |
import sys | |
from struct import * | |
def decrypt8(int0, int1, key): | |
garbage = 0xc6ed3720 | |
for i in range(32): | |
edi = (key[3] + (int0 >> 5)) & 0xffffffff | |
ebx = (key[2] + (int0 << 4)) & 0xffffffff |
OlderNewer