things for today
This commit is contained in:
@@ -21,9 +21,24 @@ namespace spider {
|
||||
u64 RV;
|
||||
u64 RM;
|
||||
|
||||
public:
|
||||
/**
|
||||
* These are private registers, which are only used
|
||||
* whenever constant things are used.
|
||||
* This way we don't "write" into constant values, rather
|
||||
* we write into a writeable var which is "hidden"
|
||||
*/
|
||||
register_t ALU0, ALU1;
|
||||
|
||||
public:
|
||||
CPU();
|
||||
~CPU();
|
||||
|
||||
public:
|
||||
|
||||
// <pygen-target name=cpu-instructions> //
|
||||
// </pygen-target> //
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
@@ -40,16 +40,16 @@
|
||||
#define SPIDER_LITTLE_ENDIAN 1
|
||||
#define SPIDER_BIG_ENDIAN 0
|
||||
#else
|
||||
#error "Unsupported or unknown architecture endianness!"
|
||||
#error "[Spider Machine] Unsupported or unknown architecture endianness!"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Safety checks
|
||||
#if !defined(SPIDER_LITTLE_ENDIAN) || !defined(SPIDER_BIG_ENDIAN)
|
||||
#error "Missed at least one little/big endian macros"
|
||||
#error "[Spider Machine] Missed at least one little/big endian macros"
|
||||
#endif
|
||||
#if SPIDER_LITTLE_ENDIAN == 1 && SPIDER_BIG_ENDIAN == 1
|
||||
#warning "Mixed endian machine detected, unsupported! Be cautious adventurer!"
|
||||
#warning "[Spider Machine] Mixed endian machine detected, unsupported! Be cautious adventurer!"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
#define SPIDER_BEGIN_PACKED
|
||||
#define SPIDER_END_PACKED
|
||||
#define SPIDER_PACKED_STRUCT(decl) decl
|
||||
#warning "MODEM: Compiler packing not supported. Memory layout may be unstable!"
|
||||
#warning "[Spider Machine] Compiler packing not supported. Memory layout may be unstable!"
|
||||
#endif
|
||||
|
||||
namespace spider {}
|
||||
|
||||
Reference in New Issue
Block a user