Main Page   Compound List   File List   Compound Members   File Members  

int.h File Reference

#include "copyright.h"

Go to the source code of this file.

Defines

#define MEMSIZE   (1<<24)
#define memoffset   0x10000000
#define amark(x)   x
#define imark(x)   x
#define ifetch(addr)   (*(int *)(int) (&(mem-memoffset)[imark(addr)]))
#define fetch(addr)   (*(int *)(int) (&(mem-memoffset)[amark(addr)]))
#define sfetch(addr)   (*(short *)(int) (&(mem-memoffset)[amark(addr)]))
#define usfetch(addr)   (*(unsigned short *)(int)(&(mem-memoffset)[amark(addr)]))
#define cfetch(addr)   (*(char *)(int) (&(mem-memoffset)[amark(addr)]))
#define ucfetch(addr)   (*(unsigned char *)(int)(&(mem-memoffset)[amark(addr)]))
#define store(addr, i)   ((*(int *)(int) (&(mem-memoffset)[amark(addr)]) = (i)))
#define sstore(addr, i)   ((*(short *)(int) (&(mem-memoffset)[amark(addr)]) = (i)))
#define cstore(addr, i)   (((mem-memoffset)[amark(addr)] = (i)))


Define Documentation

#define amark      x
 

Definition at line 15 of file int.h.

#define cfetch addr       (*(char *)(int) (&(mem-memoffset)[amark(addr)]))
 

Definition at line 22 of file int.h.

#define cstore addr,
     (((mem-memoffset)[amark(addr)] = (i)))
 

Definition at line 29 of file int.h.

#define fetch addr       (*(int *)(int) (&(mem-memoffset)[amark(addr)]))
 

Definition at line 19 of file int.h.

#define ifetch addr       (*(int *)(int) (&(mem-memoffset)[imark(addr)]))
 

Definition at line 18 of file int.h.

#define imark      x
 

Definition at line 16 of file int.h.

#define memoffset   0x10000000
 

Definition at line 12 of file int.h.

#define MEMSIZE   (1<<24)
 

Definition at line 11 of file int.h.

#define sfetch addr       (*(short *)(int) (&(mem-memoffset)[amark(addr)]))
 

Definition at line 20 of file int.h.

#define sstore addr,
     ((*(short *)(int) (&(mem-memoffset)[amark(addr)]) = (i)))
 

Definition at line 27 of file int.h.

#define store addr,
     ((*(int *)(int) (&(mem-memoffset)[amark(addr)]) = (i)))
 

Definition at line 25 of file int.h.

#define ucfetch addr       (*(unsigned char *)(int)(&(mem-memoffset)[amark(addr)]))
 

Definition at line 23 of file int.h.

#define usfetch addr       (*(unsigned short *)(int)(&(mem-memoffset)[amark(addr)]))
 

Definition at line 21 of file int.h.


Generated on Mon Feb 10 09:54:49 2003 for nachos by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002
The University of Southern California does not screen or control the content on this website and thus does not guarantee the accuracy, integrity, or quality of such content. All content on this website is provided by and is the sole responsibility of the person from which such content originated, and such content does not necessarily reflect the opinions of the University administration or the Board of Trustees