摘要:
/* * File: alloc.c * Purpose: generic malloc() and free() engine * * Notes: 99% of this code stolen/borrowed from the K&R C * examples. * */#include "common.h"#include "stdlib.h"#pragma section = "HEAP"/*************************************************************** 阅读全文
摘要:
/* * File: printk.c * Purpose: The standard C library routine printf(), but without * all the baggage. */#include <stdarg.h>/********************************************************************/typedef struct{ int dest; void (*func)( char ); char * loc;} PRINTK_INFO;int pr... 阅读全文
摘要:
/* * File: queue.h * Purpose: Implement a first in, first out linked list * * Notes: */#ifndef _QUEUE_H_#define _QUEUE_H_/********************************************************************//* * Individual queue node */typedef struct NODE{ struct NODE *next;} QNODE;/* * Queue Struture - linke... 阅读全文