#include "spice.h"
#include <stdio.h>
#include "mfb.h"
Go to the source code of this file.
mfbdecnum |
( |
int |
base, |
|
|
int |
maxdigits |
|
) |
| |
Definition at line 297 of file mfbdec.c.
300 register int i, j, k, result = 0;
303 for( i = 0; i < maxdigits; i++ ) {
305 for( j = 0; j < 22; j++ ) {
311 if( j >= 22 || k >= base ) {
Definition at line 95 of file mfbdec.c.
100 register int which = 0;
101 register int Reg = 0, reg = 0;
102 int extra,hix,hiy,lox,loy;
109 while ((c = *cp++)) {
153 if (*cp >=
'1' && *cp <=
'4')
160 if (*cp >=
'1' && *cp <=
'6')
179 which = lox + 16*hiy + 1024*hix;
183 else if(c ==
'1' || c ==
'2'){
190 MFBCurrent->
X=((hix&037)<<7)+((lox&037)<<2)+(extra&3);
191 MFBCurrent->
Y=((hiy&037)<<7)+((loy&037)<<2)+((extra>>2)&3);
194 MFBCurrent->
Z=((hix&037)<<7)+((lox&037)<<2)+(extra&3);
195 MFBCurrent->
T=((hiy&037)<<7)+((loy&037)<<2)+((extra>>2)&3);
#define mfbarg(cp, Reg, reg, val)
mfbdecnum(int base, int maxdigits)
char* digits = "0123456789abcdefABCDEF" |
Initial value:= {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
10, 11, 12, 13, 14, 15}
Definition at line 27 of file mfbdec.c.