This file contains 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
; Happy Birthday on a PIC16f (for my daughter) | |
; | |
; Copyright (C) 2020 Tim Hentenaar. | |
; This code is licenced under the Simplified BSD License. | |
; https://opensource.org/license/bsd-2-clause | |
; | |
; Plays the classic tune on a piezoelectric buzzer (PWM), and blink some LEDs. | |
; | |
list p=16f628a | |
include <p16f628a.inc> |
This file contains 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
1 REM Simple XB Little Man Computer + Line Assembler | |
2 REM Copyright (C) 2021 Tim Hentenaar. | |
3 REM This code is licenced under the Simplified BSD License. | |
4 REM https://opensource.org/license/bsd-2-clause | |
10 DIM MEM(100) ! Mailboxes (memory) | |
20 DIM MPOS(100,2) ! Screen positions for mailbox values | |
30 PC,IR,AR,A,N,H,IN,OUT=0 | |
40 GOTO 50 :: I :: K :: S :: OP :: L$ :: CALL CLEAR :: CALL HCHAR :: CALL VCHAR :: CALL KEY :: CALL COLOR :: !@P- | |
50 FOR I = 0 TO 99 |
This file contains 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
This patches the config files shipped with Duke Nukem World Tour so that | |
the levels should be playable with eduke32. There don't seem to be any | |
ogg sound effects for Duke's breathing, or the turret sounds, so I've | |
restored the original filename from Atomic Edition. | |
I've corrected the pathnames to use '/' as a separator, and altered the | |
case so that the filenames coincide with the actual filenames in the | |
sound directory. | |
I've removed the stuff specific to the 'playback' functionality as |
This file contains 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
/** | |
* Patch to fix the paging bug in the SunOS 5.5.1 (i386) kernel | |
* Copyright (C) 2015 Tim Hentenaar | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are | |
* met: | |
* | |
* 1. Redistributions of source code must retain the above copyright |
This file contains 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
/** | |
* Simple echo server | |
* | |
* This program listens for connections on the | |
* loopback interface, on port 9999. Upon connecting, | |
* The first line we read, of up to BUF_LEN bytes, is | |
* then sent back to the sender, and the connection | |
* is closed. | |
*/ | |
#include <stdio.h> |
This file contains 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
/** | |
* Simple echo server | |
* | |
* This program listens for connections on the | |
* loopback interface, on port 9999. Upon connecting, | |
* The first line we read, of up to BUF_LEN bytes, is | |
* then sent back to the sender, and the connection | |
* is closed. | |
*/ | |
#include <stdio.h> |
This file contains 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
/** | |
* Simple echo server | |
* | |
* This program listens for connections on the | |
* loopback interface, on port 9999. Upon connecting, | |
* The first line we read, of up to BUF_LEN bytes, is | |
* then sent back to the sender, and the connection | |
* is closed. | |
*/ | |
#include <stdio.h> |
This file contains 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
/** | |
* Simple echo server | |
* | |
* This program listens for connections on the | |
* loopback interface, on port 9999. Upon connecting, | |
* The first line we read, of up to BUF_LEN bytes, is | |
* then sent back to the sender, and the connection | |
* is closed. | |
*/ | |
#include <stdio.h> |
This file contains 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
/** | |
* Simple echo server | |
* | |
* This program listens for connections on the | |
* loopback interface, on port 9999. Upon connecting, | |
* The first line we read, of up to BUF_LEN bytes, is | |
* then sent back to the sender, and the connection | |
* is closed. | |
*/ | |
#include <stdio.h> |
This file contains 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
/** | |
* Simple echo server | |
* | |
* This program listens for connections on the | |
* loopback interface, on port 9999. Upon connecting, | |
* The first line we read, of up to BUF_LEN bytes, is | |
* then sent back to the sender, and the connection | |
* is closed. | |
* | |
* Refactor #1 - Move socket creation code into its own |
NewerOlder