This file contains hidden or 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
DROP FOREIGN TABLE IF EXISTS server2_cdg_types; | |
DROP USER MAPPING IF EXISTS FOR postgres SERVER server2; | |
DROP SERVER IF EXISTS server2; | |
DROP EXTENSION IF EXISTS postgres_fdw; | |
CREATE EXTENSION IF NOT EXISTS postgres_fdw; | |
CREATE SERVER server2 | |
FOREIGN DATA WRAPPER postgres_fdw | |
OPTIONS (host '127.0.0.1', port '5432', dbname 'postgres'); |
This file contains hidden or 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
; KEYZX.ASM is keyboard driver for CP/M on ZX Spectrum | |
; (c) 2021, 2022 ZXLDR | |
; | |
; [email protected] | |
; get char routine (wait for key) | |
Get_Char: ; out: a - char code | |
ld hl, (0x39) | |
ld bc, rst_38_routine |
This file contains hidden or 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
; | |
; Tape bit lengths | |
; | |
org 0x8000 | |
di | |
ld sp, stack | |
This file contains hidden or 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
; | |
; Demo tape loader by Mist Poryvaev. | |
; | |
; Loads two-section tape: e.g. BASIC loader and one code block. | |
; Look the .TAP file image at location 0x9000. | |
; | |
; start in non-contended memory, or tape input latency will be unpredictable | |
org 0x8000 | |
This file contains hidden or 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
basic48_cls equ 0x0D6B | |
org 25000 | |
ld a, 00000111b ; PAPER 0, INK 7 | |
ld (iy + 83), a ; ATTR-P | |
xor a ; BORDER 0 | |
out (0xFE), a | |
ld (iy + 14), a ; BORDCR | |
call basic48_cls |
This file contains hidden or 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
10 CLEAR 24575: RANDOMIZE USR 15619: REM : LOAD "payload1" CODE | |
20 RANDOMIZE USR 27000 | |
100 CLEAR 24575: LOAD "" CODE | |
110 RANDOMIZE USR 15619: REM : SAVE "payload1" CODE 27000, 38536 | |
120 RANDOMIZE USR 15619: REM : SAVE "boot" LINE 10 |
This file contains hidden or 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
// ==UserScript== | |
// @name Plurk jQuery patch | |
// @namespace http://www.plurk.com/ | |
// @include http://www.plurk.com/* | |
// @include https://www.plurk.com/* | |
// @version 0.1 | |
// @description Reconnect jQuery for Plurk.com | |
// @author Mist Poryvaev | |
// @grant none | |
// @run-at document-start |
This file contains hidden or 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
.org $5CD2 ; // fixed origin for https://clrhome.org/asm/ TAP generator | |
di | |
xor a | |
ld bc, $7ffd | |
out (c), a | |
ld b, $1f | |
out (c), a | |
rst $0 ; trick doesn't work when started from ZX Spectrum +3 boot menu right to BASIC48, cause bank switching is blocked forever |
This file contains hidden or 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
; CP/M example that prints command line arguments | |
.org $100 ; standard CP/M offset | |
ld hl,$0080 ; command line arguments address | |
ld a, (hl) | |
or a | |
ret z | |
inc hl | |
Loop: | |
inc hl |
This file contains hidden or 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
; switch to 48BASIC ROM from CP/M (and then switch back) | |
; to run test from 48BASIC enter "RANDOMIZE USR 32768" | |
#define CPM_ORG $100 | |
#define LOADER_ORG $C000 - $200 ; RAM bank 2 | |
#define BASIC_ORG $8000 ; RAM bank 2 | |
.org CPM_ORG | |
Cpm_Start: | |
ld de, Message_Start_Test | |
call Print_CPM |