[dev]add singlestepping functions (no UI)

This commit is contained in:
BigEd 2010-10-06 20:59:43 +00:00
parent 971bbd03e3
commit a83cb1533e
1 changed files with 15 additions and 0 deletions

View File

@ -64,6 +64,21 @@ function go(){
}
}
function goUntilSync(){
halfStep();
while(!isNodeHigh(nodenames['sync']) || isNodeHigh(nodenames['clk0']))
halfStep();
}
function goUntilSyncOrWrite(){
halfStep();
while(
!isNodeHigh(nodenames['clk0']) ||
( !isNodeHigh(nodenames['sync']) && isNodeHigh(nodenames['rw']) )
)
halfStep();
}
function testNMI(n){
initChip();