Add SEC and CLC ocpu instructions
This commit is contained in:
parent
cad208e9c8
commit
4a18c50bdc
|
@ -49,6 +49,8 @@
|
|||
#define INS_INC 0x15
|
||||
#define INS_DEC 0x16
|
||||
#define INS_OCPU_NOP 0x90
|
||||
#define INS_OCPU_SEC 0x61
|
||||
#define INS_OCPU_CLC 0x62
|
||||
|
||||
struct OCPU_MEMORY {
|
||||
byte memory[MAX_MEMORY];
|
||||
|
|
|
@ -352,6 +352,12 @@ void ocpu_execute() {
|
|||
break;
|
||||
case INS_OCPU_NOP:
|
||||
break;
|
||||
case INS_OCPU_SEC:
|
||||
ocpu.CF = 1;
|
||||
break;
|
||||
case INS_OCPU_CLC:
|
||||
ocpu.CF = 0;
|
||||
break;
|
||||
case 0x00:
|
||||
return;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue