OpenCores
URL https://opencores.org/ocsvn/lwrisc/lwrisc/trunk

Subversion Repositories lwrisc

[/] [lwrisc/] [trunk/] [CTOOL/] [hexdasm.c] - Diff between revs 13 and 15

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 13 Rev 15
Line 14... Line 14...
 
 
 
 
#include "stdlib.h"
#include "stdlib.h"
#include "stdio.h"
#include "stdio.h"
#include "string.h"
#include "string.h"
 
void add_ins(char *ins);
int func1(int in)
int func1(int in)
{
{
const int table[]={1,2,4,8,16,32,64,128,256,512,1024,2048};
const int table[]={1,2,4,8,16,32,64,128,256,512,1024,2048};
int i =0;
int i =0;
if (in>=2048)return -1;
if (in>=2048)return -1;

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.