rrthomas / beetle

A Forth-oriented VM and debugger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

It is not necessary to execute NEXT when beetle starts up.

apt1002 opened this issue · comments

"beetle.pdf", section 2.4 "Operation" says that A is set to 0 and then NEXT is executed. The latter is redundant, and could be deleted; if omitted the first call to single_step() or run() will execute NEXT anyway, because A is 0.

This simplification would be an observable change of the specification; the first call to single_step() will now execute "NEXT" where previously it would have executed the first instruction.