mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 09:48:05 +11:00
emul: bring "hw" subfolders one level higher
This commit is contained in:
parent
8cecd54410
commit
46c95320af
@ -28,7 +28,6 @@ because the goal here is to facilitate "high level" development.
|
||||
|
||||
These apps run on imaginary hardware and use many cheats to simplify I/Os.
|
||||
|
||||
For real hardware emulation (which helps developing drivers), see the `hw`
|
||||
folder.
|
||||
For real hardware emulation (which helps developing drivers), see subfolders.
|
||||
|
||||
[libz80]: https://github.com/ggambetta/libz80
|
||||
|
@ -1,10 +0,0 @@
|
||||
# Hardware emulation
|
||||
|
||||
In this folder, we emulate some of the hardware used in recipes. The emulation
|
||||
is done in a simplistic manner, just enough to verify that the driver code for
|
||||
it works generally well. No tricky stuff implemented.
|
||||
|
||||
This kind of emulation is useful for detecting obvious regressions without
|
||||
having to get the code on actual hardware for the upteenth time.
|
||||
|
||||
To use, go to the appropriate subfolder and read README there.
|
@ -1,12 +1,12 @@
|
||||
EXTOBJS = ../../emul.o ../../libz80/libz80.o
|
||||
EXTOBJS = ../emul.o ../libz80/libz80.o
|
||||
OBJS = sio.o acia.o sdc.o classic.o
|
||||
TARGET = classic
|
||||
|
||||
.PHONY: all
|
||||
all: $(TARGET)
|
||||
|
||||
../../emul.o:
|
||||
make -C ../..
|
||||
../emul.o:
|
||||
make -C ..
|
||||
|
||||
$(TARGET): $(OBJS) $(EXTOBJS)
|
||||
$(CC) $(OBJS) $(EXTOBJS) -o $@
|
@ -11,7 +11,7 @@
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <termios.h>
|
||||
#include "../../emul.h"
|
||||
#include "../emul.h"
|
||||
#include "acia.h"
|
||||
#include "sio.h"
|
||||
#include "sdc.h"
|
@ -1,4 +1,4 @@
|
||||
EXTOBJS = ../../emul.o ../../libz80/libz80.o
|
||||
EXTOBJS = ../emul.o ../libz80/libz80.o
|
||||
OBJS = sms.o vdp.o port.o pad.o kbd.o
|
||||
TARGET = sms
|
||||
CFLAGS += `pkg-config --cflags xcb`
|
||||
@ -7,8 +7,8 @@ LDFLAGS += `pkg-config --libs xcb`
|
||||
.PHONY: all
|
||||
all: $(TARGET)
|
||||
|
||||
../../emul.o:
|
||||
make -C ../..
|
||||
../emul.o:
|
||||
make -C ..
|
||||
|
||||
$(TARGET): $(OBJS) $(EXTOBJS)
|
||||
$(CC) $(OBJS) $(EXTOBJS) -o $@ $(LDFLAGS)
|
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "../../emul.h"
|
||||
#include "../emul.h"
|
||||
|
||||
// Each port is a bitmask of each pin's status. 1 means high.
|
||||
// From Bit 0 to 6: up, down, left, right, TL, TR, TH
|
@ -7,7 +7,7 @@
|
||||
#define XK_MISCELLANY
|
||||
#include <X11/keysymdef.h>
|
||||
|
||||
#include "../../emul.h"
|
||||
#include "../emul.h"
|
||||
#include "vdp.h"
|
||||
#include "port.h"
|
||||
#include "pad.h"
|
@ -1,4 +1,4 @@
|
||||
EXTOBJS = ../../emul.o ../../libz80/libz80.o
|
||||
EXTOBJS = ../emul.o ../libz80/libz80.o
|
||||
OBJS = ti84.o t6a04.o kbd.o
|
||||
TARGET = ti84
|
||||
CFLAGS += `pkg-config --cflags xcb`
|
||||
@ -7,8 +7,8 @@ LDFLAGS += `pkg-config --libs xcb`
|
||||
.PHONY: all
|
||||
all: $(TARGET)
|
||||
|
||||
../../emul.o:
|
||||
make -C ../..
|
||||
../emul.o:
|
||||
make -C ..
|
||||
|
||||
$(TARGET): $(OBJS) $(EXTOBJS)
|
||||
$(CC) $(OBJS) $(EXTOBJS) -o $@ $(LDFLAGS)
|
@ -14,7 +14,7 @@
|
||||
#define XK_MISCELLANY
|
||||
#include <X11/keysymdef.h>
|
||||
|
||||
#include "../../emul.h"
|
||||
#include "../emul.h"
|
||||
#include "t6a04.h"
|
||||
#include "kbd.h"
|
||||
|
@ -4,7 +4,7 @@ CDIR = $(BASE)/cvm
|
||||
EDIR = $(BASE)/emul
|
||||
STAGE = $(CDIR)/stage
|
||||
BLKPACK = $(BASE)/tools/blkpack
|
||||
EMUL = $(EDIR)/hw/rc2014/classic
|
||||
EMUL = $(EDIR)/rc2014/classic
|
||||
|
||||
.PHONY: all
|
||||
all: $(TARGET)
|
||||
|
@ -1,9 +1,9 @@
|
||||
TARGET = os.bin
|
||||
BASE = ../../
|
||||
BASE = ../..
|
||||
STAGE = $(BASE)/cvm/stage
|
||||
BLKPACK = $(BASE)/tools/blkpack
|
||||
SMSROM = $(BASE)/tools/smsrom
|
||||
EMUL = $(BASE)/emul/hw/sms/sms
|
||||
EMUL = $(BASE)/emul/sms/sms
|
||||
|
||||
.PHONY: all
|
||||
all: $(TARGET)
|
||||
|
@ -3,7 +3,7 @@ BASE = ../..
|
||||
CDIR = $(BASE)/cvm
|
||||
STAGE = $(CDIR)/stage
|
||||
BLKPACK = $(BASE)/tools/blkpack
|
||||
EMUL = $(BASE)/emul/hw/ti/ti84
|
||||
EMUL = $(BASE)/emul/ti/ti84
|
||||
MKTIUPGRADE = mktiupgrade
|
||||
|
||||
.PHONY: all
|
||||
|
Loading…
Reference in New Issue
Block a user