This consists of implementing the general template for the CPU cycle that will be executed upon one clock-tick.
The template should be something like:
@prepare_cycle@
for(var i = @start@; i< @end_count@; i++){
var INSTR = Memory[PC];
@do_isntr_decode@
switch(this.state){
case ARM:
break;
case THUMB:
break;
case THUMB_EE:
break;
case JAZZELE:
break;
}
}
This consists of implementing the general template for the CPU cycle that will be executed upon one clock-tick.
The template should be something like: