Skip to content

Instantly share code, notes, and snippets.

View sidd-kishan's full-sized avatar

Aayush Deo sidd-kishan

View GitHub Profile
@siddharthdeore
siddharthdeore / fw_ep6_fifo.ihx
Last active December 27, 2023 03:27
A host program to read bulk data from End Point 6 of Cypress CY7C68013A EZ-USB FX2LP USB2.0
:0400000002001132B7
:03000B000200DF11
:08006A00E4F508F50902000E9F
:03000E000201CD1F
:20007200AF82E50A60108FF005F0E50A800225E0D5F0FB42B2228FF005F0E50A800225E034
:20009200D5F0FBF452B222AF828FF005F07401800225E0D5F0FBFFE50A6004EF428022EFFF
:2000B200F4528022B200300012750A01758200120099750A00758201020099750A007582A8
:2000D20000120099750A01758201020099C021C0E0C0F0C082C083C007C006C005C004C0C4
:2000F20003C002C001C000C0D075D00074012508F508E43509F509740AB50806E4B509022F
:20011200800280081200B6E4F508F509C28C758AC0758C63D28CD0D0D000D001D002D00367
@geerlingguy
geerlingguy / increase-pci-bar-space.sh
Last active January 15, 2026 17:44
Increase the BAR memory address space for PCIe devices on the Raspberry Pi Compute Module 4
#!/bin/bash
# The default BAR address space available on the CM4 may be too small to allow
# some devices to initialize correctly. To avoid 'failed to assign memory'
# errors on boot, you can increase the range of the PCIe bus in the Raspberry
# Pi's Device Tree (a .dtb file specific to each Pi model).
#
# You should probably read up on Device Trees if you don't know what they are:
# https://www.raspberrypi.org/documentation/configuration/device-tree.md
#
@rdebath
rdebath / NewbieFuck-99-bottles.nbf
Created September 17, 2020 18:37
99 Bottles of beer in newbiefuck
>>>>>>>>>+>>++[>>+<<-]>>[<+<+>>-]<-<->>>>+<<<<<<[>>]>>>>+[-]<<+[<<+>>-]<
<->>>>+<<<<<<[>>]>>>>+[-]<<+[<<+>>-]<<->>>>+<<<<<<[>>]>>>>+[-]<<+[<<+>>-
]<<->>>>+<<<<<<[>>]>>>>+[-]<<+[<<+>>-]<<->>>>+<<<<<<[>>]>>>>+[-]<<+[<<+>
>-]<<->>>>+<<<<<<[>>]>>>>+[-]<<+[<<+>>-]<<->>>>+<<<<<<[>>]>>>>+[-]<<+[<<
+>>-]<<-+[>>+<<-]>>[>>+<<<<<<[<<]<+>>>[>>]>>-]>>-<<<+[>+[<<+>>-]>>+[<<+>
>-]>>+<<<<-<<->-]>+[-]>>>>[<<<<<+>>>>>-]<<<<<-<[+[>>+<<-]>+>[<-<+>>-]<<-
+[>>>>+<<<<-]>>>>-<<<+[>+[<<+>>-]>>+[<<+>>-]>>+<<<<-<<->-]>+[-]>>>>[<<<<
<+>>>>>-]<<<<<-<]+[<<]<[>>>[>>]<<+[<<]<-]>>>[>>]<<-->>>>++++++++++[-<<<<
+[>>+<<-]>>[<+<+>>-]<-<->>>>]<<<<+[>>+<<-]>>[>>+<<<<<<[<<]<+>>>[>>]>>-]>
>-<<<+[>+[<<+>>-]>>+[<<+>>-]>>+<<<<-<<->-]>+[-]>>>>[<<<<<+>>>>>-]<<<<<-<
@tai
tai / dscr.a51
Created July 5, 2015 02:36
Sample USB descriptor definition for USB-CDC with Cypress EZ-USB FX2/FX2LP + SDCC
;;; -*- mode: asm; coding: utf-8 -*-
;;;
;;; USB descriptor definition for virtual COM port implementation
;;; with Cypress EZ-USB FX2 (CY7C68013) and FX2LP (CY7C68013A).
;;;
;;; NOTE:
;;; - Works with sdcc, but may need recent version due to use of
;;; assembler macros.
;;;
@rdebath
rdebath / README
Last active November 16, 2025 06:33
Original brainfuck distribution by Urban Müller
This archive contains the following programs:
bfc The compiler for the 'brainfuck' language (240 bytes!)
bfc.asm Source for the compiler
bfi The interpreter for the 'brainfuck' language
bfi.c Source for the interpreter (portable)
src/ Some example programs in 'brainfuck'
src/atoi.b Reads a number from stdin
src/div10.b Divides the number under the pointer by 10
src/hello.b The ubiquitous "Hello World!"