Main Page Compound List File List Compound Members File Members
execute.c File Reference
#include "copyright.h"
#include <stdio.h>
#include "instr.h"
#include "encode.h"
#include "int.h"
Go to the source code of this file.
Define Documentation
| #define b31 |
( |
z |
|
) |
(((z) >>31 )&0x1)
|
|
| #define cc_add |
( |
rr, |
|
|
op1, |
|
|
op2 |
|
) |
|
|
|
|
Value: N = (rr < 0); \
Z = (rr == 0); \
C = ((unsigned) rr < (unsigned) op2); \
V = ((op1^op2) >= 0 && (op1^rr) < 0);
Definition at line 34 of file execute.c. |
|
|
Value: N = (rr < 0); \
Z = (rr == 0); \
V = 0; \
C = 0;
Definition at line 48 of file execute.c. |
| #define cc_mulscc |
( |
rr, |
|
|
op1, |
|
|
op2 |
|
) |
|
|
|
|
Value: N = (rr < 0); \
Z = (rr == 0); \
V = b31((op1 & op2 & ~rr) | (~op1 & ~op2 & rr)); \
C = b31((op1 & op2) | (~rr & (op1 | op2)));
Definition at line 54 of file execute.c. |
| #define cc_sub |
( |
rr, |
|
|
op1, |
|
|
op2 |
|
) |
|
|
|
|
Value: N = (rr < 0); \
Z = (rr == 0); \
V = b31((op1 & ~op2 & ~rr) | (~op1 & op2 & rr)); \
C = ((unsigned) op1 < (unsigned) op2);
Definition at line 40 of file execute.c. |
Function Documentation
| void henters |
( |
n |
, |
|
|
hist |
|
|
) |
|
|
Variable Documentation
Generated on Mon Feb 10 09:54:49 2003 for nachos by
1.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