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

Subversion Repositories eco32

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /eco32/trunk/stdalone/hello2
    from Rev 18 to Rev 95
    Reverse comparison

Rev 18 → Rev 95

/Makefile
1,5 → 1,5
#
# Makefile for "hello", a program for testing the boot loader
# Makefile for "hello2", a program for testing the boot loader
#
 
BUILD = ../../build
7,22 → 7,27
SRC = start.s main.c end.s
BIN = hello2.bin
MAP = hello2.map
EXO = hello2.exo
 
.PHONY: all install run clean
 
all: $(BIN)
all: $(BIN) $(EXO)
 
install: $(BIN)
install: $(BIN) $(EXO)
mkdir -p $(BUILD)/stdalone
cp $(BIN) $(BUILD)/stdalone
cp $(MAP) $(BUILD)/stdalone
cp $(EXO) $(BUILD)/stdalone
 
run: $(BIN)
$(BUILD)/bin/sim -i -t 1 -l $(BIN)
$(BUILD)/bin/sim -i -t 1 -l $(BIN) -a 0x10000
 
$(EXO): $(BIN)
$(BUILD)/bin/bin2exo -S2 0x10000 $(BIN) $(EXO)
 
$(BIN): $(SRC)
$(BUILD)/bin/lcc -A -Wo-kernel \
-Wl-m -Wl$(MAP) -o $(BIN) $(SRC)
 
clean:
rm -f *~ $(BIN) $(MAP)
rm -f *~ $(BIN) $(MAP) $(EXO)
/start.s
22,18 → 22,6
 
.code
 
; reset arrives here
reset:
j start
 
; interrupts arrive here
intrpt:
j intrpt
 
; user TLB misses arrive here
userMiss:
j userMiss
 
start:
mvfs $8,0
or $8,$8,1 << 27 ; let vector point to RAM

powered by: WebSVN 2.1.0

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