mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 09:58:06 +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.
|
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`
|
For real hardware emulation (which helps developing drivers), see subfolders.
|
||||||
folder.
|
|
||||||
|
|
||||||
[libz80]: https://github.com/ggambetta/libz80
|
[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
|
OBJS = sio.o acia.o sdc.o classic.o
|
||||||
TARGET = classic
|
TARGET = classic
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
../../emul.o:
|
../emul.o:
|
||||||
make -C ../..
|
make -C ..
|
||||||
|
|
||||||
$(TARGET): $(OBJS) $(EXTOBJS)
|
$(TARGET): $(OBJS) $(EXTOBJS)
|
||||||
$(CC) $(OBJS) $(EXTOBJS) -o $@
|
$(CC) $(OBJS) $(EXTOBJS) -o $@
|
@ -11,7 +11,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include "../../emul.h"
|
#include "../emul.h"
|
||||||
#include "acia.h"
|
#include "acia.h"
|
||||||
#include "sio.h"
|
#include "sio.h"
|
||||||
#include "sdc.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
|
OBJS = sms.o vdp.o port.o pad.o kbd.o
|
||||||
TARGET = sms
|
TARGET = sms
|
||||||
CFLAGS += `pkg-config --cflags xcb`
|
CFLAGS += `pkg-config --cflags xcb`
|
||||||
@ -7,8 +7,8 @@ LDFLAGS += `pkg-config --libs xcb`
|
|||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
../../emul.o:
|
../emul.o:
|
||||||
make -C ../..
|
make -C ..
|
||||||
|
|
||||||
$(TARGET): $(OBJS) $(EXTOBJS)
|
$(TARGET): $(OBJS) $(EXTOBJS)
|
||||||
$(CC) $(OBJS) $(EXTOBJS) -o $@ $(LDFLAGS)
|
$(CC) $(OBJS) $(EXTOBJS) -o $@ $(LDFLAGS)
|
@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "../../emul.h"
|
#include "../emul.h"
|
||||||
|
|
||||||
// Each port is a bitmask of each pin's status. 1 means high.
|
// 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
|
// From Bit 0 to 6: up, down, left, right, TL, TR, TH
|
@ -7,7 +7,7 @@
|
|||||||
#define XK_MISCELLANY
|
#define XK_MISCELLANY
|
||||||
#include <X11/keysymdef.h>
|
#include <X11/keysymdef.h>
|
||||||
|
|
||||||
#include "../../emul.h"
|
#include "../emul.h"
|
||||||
#include "vdp.h"
|
#include "vdp.h"
|
||||||
#include "port.h"
|
#include "port.h"
|
||||||
#include "pad.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
|
OBJS = ti84.o t6a04.o kbd.o
|
||||||
TARGET = ti84
|
TARGET = ti84
|
||||||
CFLAGS += `pkg-config --cflags xcb`
|
CFLAGS += `pkg-config --cflags xcb`
|
||||||
@ -7,8 +7,8 @@ LDFLAGS += `pkg-config --libs xcb`
|
|||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
../../emul.o:
|
../emul.o:
|
||||||
make -C ../..
|
make -C ..
|
||||||
|
|
||||||
$(TARGET): $(OBJS) $(EXTOBJS)
|
$(TARGET): $(OBJS) $(EXTOBJS)
|
||||||
$(CC) $(OBJS) $(EXTOBJS) -o $@ $(LDFLAGS)
|
$(CC) $(OBJS) $(EXTOBJS) -o $@ $(LDFLAGS)
|
@ -14,7 +14,7 @@
|
|||||||
#define XK_MISCELLANY
|
#define XK_MISCELLANY
|
||||||
#include <X11/keysymdef.h>
|
#include <X11/keysymdef.h>
|
||||||
|
|
||||||
#include "../../emul.h"
|
#include "../emul.h"
|
||||||
#include "t6a04.h"
|
#include "t6a04.h"
|
||||||
#include "kbd.h"
|
#include "kbd.h"
|
||||||
|
|
@ -4,7 +4,7 @@ CDIR = $(BASE)/cvm
|
|||||||
EDIR = $(BASE)/emul
|
EDIR = $(BASE)/emul
|
||||||
STAGE = $(CDIR)/stage
|
STAGE = $(CDIR)/stage
|
||||||
BLKPACK = $(BASE)/tools/blkpack
|
BLKPACK = $(BASE)/tools/blkpack
|
||||||
EMUL = $(EDIR)/hw/rc2014/classic
|
EMUL = $(EDIR)/rc2014/classic
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
TARGET = os.bin
|
TARGET = os.bin
|
||||||
BASE = ../../
|
BASE = ../..
|
||||||
STAGE = $(BASE)/cvm/stage
|
STAGE = $(BASE)/cvm/stage
|
||||||
BLKPACK = $(BASE)/tools/blkpack
|
BLKPACK = $(BASE)/tools/blkpack
|
||||||
SMSROM = $(BASE)/tools/smsrom
|
SMSROM = $(BASE)/tools/smsrom
|
||||||
EMUL = $(BASE)/emul/hw/sms/sms
|
EMUL = $(BASE)/emul/sms/sms
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
@ -3,7 +3,7 @@ BASE = ../..
|
|||||||
CDIR = $(BASE)/cvm
|
CDIR = $(BASE)/cvm
|
||||||
STAGE = $(CDIR)/stage
|
STAGE = $(CDIR)/stage
|
||||||
BLKPACK = $(BASE)/tools/blkpack
|
BLKPACK = $(BASE)/tools/blkpack
|
||||||
EMUL = $(BASE)/emul/hw/ti/ti84
|
EMUL = $(BASE)/emul/ti/ti84
|
||||||
MKTIUPGRADE = mktiupgrade
|
MKTIUPGRADE = mktiupgrade
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
Loading…
Reference in New Issue
Block a user