[ HEX: 10 swap set-cpu-last-interrupt ] keep
0 swap set-cpu-cycles ;
-C: cpu ( cpu -- cpu )
+C: cpu ( -- cpu )
[ reset ] keep ;
: (load-rom) ( n ram -- )
: test-n ( n -- )
test-cpu swap [ test-step ] times ;
-: run-n ( cpu n -- )
+: run-n ( cpu n -- cpu )
[ dup step ] times ;
: register-lookup ( string -- vector )
[ [ 1 + ] dip uchar-nth ] 2keep
[ 2 + ] dip uchar-nth 3array ;
-C: space-invaders ( cpu -- cpu )
+C: space-invaders ( -- cpu )
[ <cpu> swap set-delegate ] keep
[ make-opengl-bitmap swap set-space-invaders-bitmap ] keep
[ reset ] keep ;