Renames explink to svmln, as to svmas.

This commit is contained in:
Felix Queißner 2016-07-02 17:21:06 +02:00
parent 03d55d22a7
commit 3d46b22f61
5 changed files with 8 additions and 21 deletions

View file

@ -2,11 +2,11 @@
CC = gcc
CFLAGS=-O3
all: explink expdump emulator as
all: svmln expdump emulator svmas
.PHONY: as clean run
explink: explink.c
svmln: svmln.c
$(CC) -g -o bin/$@ $^ $(CFLAGS)
expdump: expdump.c mnemonics.c disassembler.c
@ -15,9 +15,9 @@ expdump: expdump.c mnemonics.c disassembler.c
emulator: emulator.c vm.c
$(CC) -g -o bin/$@ $^ -lSDL $(CFLAGS)
as:
svmas:
$(MAKE) -C as
test: exp
./exp -o test.exp $(ARGS)
hexdump -C test.exp

View file

@ -1,6 +1,6 @@
all: as
all: svmas
as: as.c tokens.c ../mnemonics.c ../disassembler.c
svmas: as.c tokens.c ../mnemonics.c ../disassembler.c
gcc -g -o ../bin/$@ $^
tokens.c: tokens.y

View file

@ -1,13 +0,0 @@
#!/bin/sh
ASMFILE=$1.asm
BINFILE=`echo $ASMFILE | sed "s|\.asm\$|\.bin|"`
EXPFILE=`echo $BINFILE | sed "s|\.bin\$|\.exp|"`
echo $ASMFILE
echo $BINFILE
echo $EXPFILE
./bin/as -o $BINFILE $ASMFILE -Ls
./bin/explink -o $EXPFILE -c $BINFILE
rm $BINFILE

View file

@ -106,8 +106,8 @@ void update_input(SDL_Event *ev)
void initialize_vm()
{
// Initialize memory
mainCore.memoryBase = 0x00; // Linear memory, start at 0x00
mainCore.memorySize = 0x4000000; // 64 MB;
mainCore.memoryBase = 0x00; // Linear memory, start at 0x00
mainCore.memorySize = 0x4000000; // 64 MB;
mainCore.memory = malloc(mainCore.memorySize);
// Initialize code execution