Skip to content

Commit

Permalink
🐛 FIX: Fix assembled file pattern
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Dillenburg <luca.assumpcao.dillenburg@gmail.com>
  • Loading branch information
LucaDillenburg committed Sep 21, 2020
1 parent 5b1490e commit 82cd1be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/program.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (p *Program) ReplaceLabelsWithNumbers() []error {
const executerFileHeader = "v2.0 raw"

func (p *Program) ToExecuter() (string, []myerrors.CustomError) {
machineCodeStr := executerFileHeader + "\n" + "0000"
machineCodeStr := executerFileHeader + "\n" + "0000" + " "
// TODO: Circuit requires "0000" as first (probably because of the PC counter and inverted clock)

var errors []myerrors.CustomError
Expand All @@ -72,7 +72,7 @@ func (p *Program) ToExecuter() (string, []myerrors.CustomError) {
errors = append(errors, *err)
}

machineCodeStr += executerCode
machineCodeStr += executerCode + " "
}

if len(errors) == 0 {
Expand Down

0 comments on commit 82cd1be

Please sign in to comment.