Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
kulp committed Dec 17, 2011
2 parents c3b8abb + e589d8f commit 1906f89
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 21 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ CFLAGS += -Wall -Wextra

CFILES = $(wildcard *.c)

VPATH += src
INCLUDES += src

BUILD_NAME := $(shell git describe --long --always)
DEFINES += BUILD_NAME='$(BUILD_NAME)'
CPPFLAGS += $(patsubst %,-D%,$(DEFINES))
CPPFLAGS += $(patsubst %,-D%,$(DEFINES)) \
$(patsubst %,-I%,$(INCLUDES))

all: tas tsim
tas: parser.o lexer.o
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 0 additions & 20 deletions tas.c → src/tas.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,6 @@

int print_disassembly(FILE *out, struct instruction *i);

static int binary_in(FILE *in, struct instruction *i)
{
return fread(&i->u.word, 4, 1, in) == 1;
}

static int text_in(FILE *in, struct instruction *i)
{
return fscanf(in, "%x", &i->u.word) == 1;
}

static int binary_out(FILE *stream, struct instruction *i)
{
return fwrite(&i->u.word, sizeof i->u.word, 1, stream) == 1;
}

static int text_out(FILE *stream, struct instruction *i)
{
return fprintf(stream, "0x%08x\n", i->u.word) > 0;
}

static const char shortopts[] = "df:o:p::hV";

static const struct option longopts[] = {
Expand Down
File renamed without changes.

0 comments on commit 1906f89

Please sign in to comment.