摘要: /* * 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"/*************************************************************** 阅读全文
posted @ 2013-04-22 23:20 IAmAProgrammer 阅读(343) 评论(0) 推荐(0) 编辑
摘要: /* * 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... 阅读全文
posted @ 2013-04-22 23:14 IAmAProgrammer 阅读(574) 评论(0) 推荐(0) 编辑
摘要: /* * 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... 阅读全文
posted @ 2013-04-22 23:04 IAmAProgrammer 阅读(309) 评论(0) 推荐(0) 编辑