Skip to content

Instantly share code, notes, and snippets.

View chainq's full-sized avatar
🕹️
writeln('hello, world!');

Károly Balogh chainq

🕹️
writeln('hello, world!');
View GitHub Profile
@chainq
chainq / cmem.pp
Created November 18, 2014 19:14
CMem memory allocator for Free Pascal with 16 byte alignment
{
This file is part of the Free Pascal run time library.
Copyright (c) 1999 by Michael Van Canneyt, member of the
Free Pascal development team
Implements a memory manager that uses the C memory management.
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
@chainq
chainq / init
Created May 21, 2015 12:08
My BootWithNoStartup init script for expanded Commodore Amigas, because many people requested it. I mainly use it to run demoscene stuff.
.key NOOXY/S,NOKCON/S
.bra {
.ket }
; $VER: init 40.4 (21.5.15) (c) 2003-2015 Charlie/Singular Crew
; Simple initialization script for use with BootWithNoStartup
; on expanded classic Amiga systems.
;
; This script is not generic, and you will probably have to
; customize it for your and your system's needs.
@chainq
chainq / monthsandseasons.pas
Last active June 1, 2017 00:29
Example about Sets, Enums and Arrays in Pascal (requires Free Pascal 2.4 or newer)
{$MODE OBJFPC}
program MonthsAndSeasons;
uses
sysutils, dateutils;
function hasArguments: boolean;
const
yesNo: array[boolean] of string = ( 'No', 'Yes' );
@chainq
chainq / get-maven.sh
Created January 12, 2018 11:33
Gets a pair of .jar/.pom files from Maven central
#!/bin/sh
HOST=https://repo.maven.apache.org/maven2/
WGET_OPTS="-N -nH -x --cut-dirs=1"
ARG=$1
if [ -z "$ARG" ]; then
echo "No arg."
exit
@chainq
chainq / e-uae_ovl.patch
Created February 5, 2018 11:17
MorphOS/CybergraphX overlay modulo fix for E-UAE
Index: ami-win.c
===================================================================
--- ami-win.c (revision 161)
+++ ami-win.c (working copy)
@@ -147,7 +147,6 @@
#ifdef USE_CGX_OVERLAY
int use_overlay = 0;
-UWORD * vlayer_baseaddress = NULL;
APTR VLHandle = NULL;
@chainq
chainq / viaduct-1.0-readme.txt
Created May 28, 2018 09:57
Viaduct 1.0 README
Viaduct
=======
A PCWindow replacement for CBM Bridgeboards for Amiga computers.
Why?
----
In short, I like crazy projects which don't make any sense whatsoever.
@chainq
chainq / nbsd_console_debug.patch
Created March 25, 2023 10:52
NetBSD Console Debug patch
diff --git a/sys/arch/amiga/stand/bootblock/boot/console.c b/sys/arch/amiga/stand/bootblock/boot/console.c
index 08cb523adccd..801be4cc5c95 100644
--- a/sys/arch/amiga/stand/bootblock/boot/console.c
+++ b/sys/arch/amiga/stand/bootblock/boot/console.c
@@ -43,6 +43,24 @@
#include "amigaio.h"
#include "libstubs.h"
+int32_t EasyRequestArgs(void *, void *, u_int32_t *, void *);
+
@chainq
chainq / nbsd_fix_bootblock.patch
Created March 25, 2023 17:27
NetBSD BootBlock Patch to boot with Hyperion's Kickstart versions
diff --git a/sys/arch/amiga/stand/bootblock/boot/console.c b/sys/arch/amiga/stand/bootblock/boot/console.c
index 08cb523adccd..5e385de0bdd2 100644
--- a/sys/arch/amiga/stand/bootblock/boot/console.c
+++ b/sys/arch/amiga/stand/bootblock/boot/console.c
@@ -138,8 +138,21 @@ consinit(void *consptr) {
goto err;
mc->cnior->buf = (void *)mc->w;
- if (OpenDevice("console.device", 0, mc->cnior, 0))
- goto err;