Skip to content

Instantly share code, notes, and snippets.

View neozeed's full-sized avatar

neozeed

View GitHub Profile
@neozeed
neozeed / gist:433f6deb3d913b046949157d360c69b8
Created May 5, 2024 16:29
A really poor port of the sphere render by Kweepa? Thanks to Nemo for help! now with VGA!
REM screen 1 320x200 2bits per pixel
REM screen 2 640x200 2bits
REM screen 7 320x200 4bits per pixel EGA
REM screen 8 640x200 4bits per pixel EGA
REM screen 9 640x350 2bits per pixel EGA
REM screen 10 640x350 2bits per pixel EGA
REM screen 11 640x480 2 attributes VGA
REM screen 12 640x480 4 attributes VGA
REM screen 13 320x200 256 attributes
@neozeed
neozeed / gist:763074a3186711fbccbfb8b396bcca77
Created May 4, 2024 21:19
A really poor port of the sphere render by Kweepa? Thanks to Nemo for help! now with VGA!
REM screen 1 320x200 2bits per pixel
REM screen 7 320x200 4bits per pixel EGA
REM screen 8 640x200 4bits per pixel EGA
REM screen 9 640x350 2bits per pixel EGA
REM screen 10 640x350 2bits per pixel EGA
REM screen 11 640x480 2 attributes VGA
REM screen 12 640x480 4 attributes VGA
REM screen 13 320x200 256 attributes
REM vga
@neozeed
neozeed / gist:d6a901bfc2f4dd0fa93c6d273847a1bc
Created May 4, 2024 13:42
A really poor port of the sphere render by Kweepa? Thanks to Nemo for help!
SCREEN 7
DIM lookup%(16)
FOR I = 1 TO 16
READ lookup%(I)
NEXT I
REM DATA 0,24,6,30,36,12,42,18,9,33,3,27,45,21,39,15
DATA 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
P% = lookup%
@neozeed
neozeed / gist:82d951b67ba2a7bf28fe725bdee21b72
Created May 4, 2024 11:46
A really poor port of the sphere render by Kweepa?
SCREEN 7
DIM lookup%(16)
FOR I = 1 TO 16
READ lookup%(I)
NEXT I
REM DATA 0,24,6,30,36,12,42,18,9,33,3,27,45,21,39,15
DATA 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
P% = lookup%
@neozeed
neozeed / filesystem.c
Created September 14, 2021 14:36
heavily modified filesystem code from Shoebill to extract a file(s) from a raw SYSV filesystem
// Might work with MinGW/Linux? I am pretty sure I pulled the endian stuff, leaning on winsock. Maybe Linux will figure it out, not sure.
// Anyways Im too lazy to read how to init this stuff and bypass the apple partition map
// Instead I have it open an apple disk, and then when it's time to read a filesystem
// I close the file handle and patch it (lol) to open another filesystem.
// It doesn't work on the s1505_cp3540.dd image, but oddly enough I was able to get files
// from other 68k SYSVr2 and SYSVr3 filesystems without issue.
// Define JASON to turn on my horrible modifications
// As always the real hard work was all Peter's.