- squoze.net, pdp-6.net
- @akero_p
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
.cpu "6502" | |
; move word | |
movw .macro | |
lda \2 | |
sta \1 | |
lda \2+1 | |
sta \1+1 | |
.endm | |
; move immediate word |
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
#define THING_ELEMENTS\ | |
E(int, a)\ | |
E_x(int, b)\ | |
E(int, c)\ | |
EB(int, A, 1)\ | |
EB(int, B, 3)\ | |
EB(int, C, 1)\ | |
EB_x(int, D, 1)\ | |
E(float, d) |
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
struct MemoryBlock | |
{ | |
size_t sz; | |
uint32 hint; | |
void *origPtr; | |
LLLink inAllocList; | |
}; | |
LinkList allocations; | |
size_t totalMemoryAllocated; |
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
(defparameter *grammar* | |
'((accept list nil) | |
(list list 'comma element) | |
(list element) | |
(element 'a) | |
(element 'b))) | |
(defvar *rules*) ; vector of *grammar* | |
(defvar *sets*) |
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
#define _CRT_SECURE_NO_WARNINGS | |
#pragma warning(disable: 4244) // int to float | |
#pragma warning(disable: 4800) // int to bool | |
#pragma warning(disable: 4838) // narrowing conversion | |
#include <windows.h> | |
// use https://github.com/aap/skygfx_vc/blob/master/src/MemoryMgr.h | |
#include "MemoryMgr.h" | |
#define NUMWEATHERS 23 |