Improve consistency for including
This commit is contained in:
parent
c39a680293
commit
517577d546
10 changed files with 17 additions and 16 deletions
|
@ -1,5 +1,5 @@
|
||||||
#include "cpu.h"
|
#include <cpu/cpu.h>
|
||||||
#include "panic.h"
|
#include <cpu/panic.h>
|
||||||
|
|
||||||
void Cpu_state::setAF(u16 v)
|
void Cpu_state::setAF(u16 v)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "cpu/cpu.h"
|
#include <cpu/cpu.h>
|
||||||
#include "cpu/panic.h"
|
#include <cpu/panic.h>
|
||||||
#include "memory/mem_device.h"
|
#include <memory/mem_device.h>
|
||||||
|
|
||||||
static inline u16 make_u16(u8 msb, u8 lsb)
|
static inline u16 make_u16(u8 msb, u8 lsb)
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
|
||||||
#include "mem_device.h"
|
#include <memory/mem_device.h>
|
||||||
|
|
||||||
class Bus : public Mem_device {
|
class Bus : public Mem_device {
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "types.h"
|
#include <types.h>
|
||||||
|
|
||||||
class Range {
|
class Range {
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "ram.h"
|
#include <memory/ram.h>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
RAM::RAM(u16 size) : size(size), readonly(false) {
|
RAM::RAM(u16 size) : size(size), readonly(false) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "mem_device.h"
|
#include <memory/mem_device.h>
|
||||||
|
|
||||||
class RAM : public Mem_device {
|
class RAM : public Mem_device {
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "doctest.h"
|
#include "doctest.h"
|
||||||
|
|
||||||
#include "memory/bus.h"
|
#include <memory/bus.h>
|
||||||
#include "memory/ram.h"
|
#include <memory/ram.h>
|
||||||
|
|
||||||
TEST_CASE("Bus can map same device twice")
|
TEST_CASE("Bus can map same device twice")
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "doctest.h"
|
#include "doctest.h"
|
||||||
|
|
||||||
#include "cpu/cpu.h"
|
#include <cpu/cpu.h>
|
||||||
#include "memory/ram.h"
|
#include <memory/ram.h>
|
||||||
|
|
||||||
TEST_CASE("EI followed by DI should not trigger interrupt")
|
TEST_CASE("EI followed by DI should not trigger interrupt")
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "doctest.h"
|
#include "doctest.h"
|
||||||
|
|
||||||
#include "cpu/cpu.h"
|
#include <cpu/cpu.h>
|
||||||
#include "memory/ram.h"
|
#include <memory/ram.h>
|
||||||
|
|
||||||
|
|
||||||
TEST_CASE("simple load and add")
|
TEST_CASE("simple load and add")
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include "doctest.h"
|
#include "doctest.h"
|
||||||
#include "memory/ram.h"
|
|
||||||
|
#include <memory/ram.h>
|
||||||
|
|
||||||
TEST_SUITE_BEGIN("memory/ram");
|
TEST_SUITE_BEGIN("memory/ram");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue