Add basic io header
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
CC=cl65
|
||||
CFLAGS=-t none
|
||||
CFLAGS=-t none -I.
|
||||
LDFLAGS=-C link.ld
|
||||
|
||||
NAME=bootrom
|
||||
@@ -11,7 +11,9 @@ SRCS=$(wildcard *.S) $(wildcard *.c)
|
||||
OBJS+=$(patsubst %.S,%.o,$(filter %S,$(SRCS)))
|
||||
OBJS+=$(patsubst %.c,%.o,$(filter %c,$(SRCS)))
|
||||
|
||||
all: $(BIN)
|
||||
all: $(HEX)
|
||||
|
||||
$(HEX): $(BIN)
|
||||
objcopy --input-target=binary --output-target=ihex $(BIN) $(HEX)
|
||||
|
||||
|
||||
|
||||
6
sw/io.h
Normal file
6
sw/io.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef _IO_H
|
||||
#define IO_H
|
||||
|
||||
#define IO_REMAP *(unsigned char*)0x7f00
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user