* Copyright (c) 1992 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* Sony Corp. and Kazumasa Utashiro of Software Research Associates, Inc.
* %sccs.include.redist.c%
* from: $Hdr: askrom.c,v 4.300 91/06/09 06:32:39 root Rel41 $ SONY
* @(#)askrom.c 7.3 (Berkeley) %G%
#if NNWB514 > 0 || NNWB251 > 0 || NNWB256 > 0
#include "../../h/param.h"
#include "../../iop/framebuf.h"
#include "../../iop/fbreg.h"
#include <news3400/iop/framebuf.h>
#include <news3400/iop/fbreg.h>
#include <news3400/fb/fbdefs.h>
#include <news3400/fb/qpdm.h>
extern char *ext_fnt_addr
[];
extern char *ext_fnt24_addr
[];
autos_Krom_addr(fb
, c
, sr
)
if ((c
>= 0x20) && (c
<= 0x7e)) {
c
= ((c
& 0x1f) | ((c
& 0xe0) << 2)) << 7;
return ((caddr_t
)(c
+ QP_KJROM
+ (sr
->extent
.y
> 16 ? 0 : 96)));
} else if ((c
>= 0xa1) && (c
<= 0xdf)) {
return ((caddr_t
)ext_fnt24_addr
[c
+ 64]);
return ((caddr_t
)ext_fnt_addr
[c
+ 64]);
} else if ((c
>= 0x2000) && (c
<= 0x7fff)) {
c
= ((c
& 0x1f)|((c
& 0x60)<<5)|((c
& 0x700)>>1))<<7;
c
= ((c
& 0x7f)|((c
& 0xf00)>>1)|((c
& 0x4000)>>3))<<7;
c
= ((c
& 0x7f)|((c
& 0xf00)>>1)
|((c
& 0x2000)>>2)|0x1000) << 7;
c
= ((c
& 0x1f)|((c
& 0x60)<<5)
| ((c
& 0x700)>>1)|0x1000) << 7;
return ((caddr_t
)(c
+ QP_KJROM
+ (sr
->extent
.y
> 16 ? 0 : 96)));
#endif /* NNWB514 > 0 || NNWB251 > 0 || NNWB256 > 0 */