Skip to content

Instantly share code, notes, and snippets.

[
{
"id": "e60eab8a24374f3a",
"type": "dnsquery",
"z": "592755914c0b6c81",
"name": "",
"domain_nameType": "str",
"domain_name": "test.com",
"record_typeType": "rectype",
"record_type": "A",
@xk
xk / 10.index.js
Created June 28, 2020 09:39
Lowsync patch for easier manual flashing. Replace node_modules/lowsync/build/10.index.js with this. Tested, works with an ESP32-CAM.
#!/usr/bin/env node
require('source-map-support').install();
exports.ids = [10];
exports.modules = {
/***/ "./node_modules/@serialport/parser-delimiter/lib/index.js":
/*!****************************************************************!*\
!*** ./node_modules/@serialport/parser-delimiter/lib/index.js ***!
\****************************************************************/
/*! no static exports found */
@xk
xk / LAN8720A_esp32.ino
Last active January 9, 2024 19:40
Investigating the LAN8710/8720A boot up sequence with an esp32.
#include <ETH.h>
#include <esp_eth.h>
#include <esp_wifi.h>
#include <driver/gpio.h>
//#define __GEORGE__
#define ETH_TXD0_PIN 19
#define ETH_TXEN_PIN 21
#define ETH_TXD1_PIN 22
@xk
xk / gist:1f455af5c9017150b8d6234743e9c2a3
Created July 16, 2019 13:12
manchester decode 6502 asm
; Apple II TURBO CASSETTE LOADER
; 13569 bps @44100 sps
; 14769 bps @48000 sps
; Jorge Chamorro Bieling, SEPT 2017
; jorge@jorgechamorro.com
; Compile with: apple2.duckdns.org/assembler/
; Connect the PC to the Apple II cassette in port, set the volume at 50% or more.
@xk
xk / count_2_100e6.asm
Created November 1, 2017 11:00
6502 (FAKE) COUNT TO 100e6 (PLAYING THE GAME OF MIRRORS) (Apple II)
;See "Hypercount2017" @ c.s.a2
;https://groups.google.com/forum/#!topic/comp.sys.apple2/3hag0ebN-ts
;And "Counting from 1 to 1,000,000 on the FASTChip" @ c.s.a2
;https://groups.google.com/forum/#!topic/comp.sys.apple2/ibI06hDLiaY%5B1-25%5D
* = $1000
cero = $b0
display = 1464
digitos = 8
@xk
xk / count_2_1e40.asm
Created October 31, 2017 11:26
6502 COUNT TO 1e40 (Apple II)
;see "Counting from 1 to 1,000,000 on the FASTChip" @ c.s.a2
;https://groups.google.com/forum/#!topic/comp.sys.apple2/ibI06hDLiaY
* = $1000
uno = 177
dos = 178
zero = 176
dospuntos = 186
@xk
xk / count_2_one_million.asm
Last active October 29, 2017 20:23
SANER 6502 COUNT TO ONE MILLION
;see "Counting from 1 to 1,000,000 on the FASTChip" @ c.s.a2
;https://groups.google.com/forum/#!topic/comp.sys.apple2/ibI06hDLiaY
;And
;https://gist.github.com/xk/d2b95a4dcfc6f6fd40310dfeacb257da
;In theory the limit is ~1e6*6 cycles, ~ 6s, totally unrolled.
;This does it in ~ 6.2s.
* = $1000
@xk
xk / count_2_one_million.hex
Created October 29, 2017 10:10
TOTAL INSANITY 6502 COUNT TO ONE MILLION
;see "Counting from 1 to 1,000,000 on the FASTChip" @ c.s.a2
;https://groups.google.com/forum/#!topic/comp.sys.apple2/ibI06hDLiaY
;See https://gist.github.com/xk/d2b95a4dcfc6f6fd40310dfeacb257da
1000:A0 B0 8C 05 04 8C 04 04
:8C 03 04 8C 02 04 8C 01
:04 8C 00 04 20 90 12 EE
:01 04 20 90 12 EE 01 04
:20 90 12 EE 01 04 20 90
@xk
xk / count_2_one_million.asm
Last active October 29, 2017 10:11
TOTAL INSANITY 6502 COUNT TO ONE MILLION
;see "Counting from 1 to 1,000,000 on the FASTChip" @ c.s.a2
;https://groups.google.com/forum/#!topic/comp.sys.apple2/ibI06hDLiaY
;Compiled copy-pasteable hex is here:
;https://gist.github.com/xk/b20138aae4e5e841d061803e15d17290
* = $1000
bell = $ff3a
digito0 = 1029
@xk
xk / cassette-scope.s
Created September 26, 2017 08:54
Apple II cassette-scope
;CASSETTE-SCOPE
;2017-09 JORGE@JORGECHAMORRO.COM
;KEYS:
;(T)RIGGER ON / OFF
;(SPACE) RUN / STOP
;(O)NE SHOT ON /OFF
;Any other key quits