2019 Day 7 Complete

This commit is contained in:
2019-12-09 09:17:27 -06:00
parent 22c83634fa
commit a896f40ab5
2 changed files with 35 additions and 34 deletions

View File

@@ -204,6 +204,10 @@ func (p *Program) Step() int {
return RET_ERR
}
func (p *Program) GetCurrentOpCode() int {
return p.code[p.ptr]
}
func (p *Program) GetProgramValueAt(idx int) int {
p.ensureLength(idx)
return p.code[idx]