MetalPizzaCat / MetalPizzaCat/BOBO

Addition operation uses wrong mov command

Open
#3 2 comments 0 reactions 1 assignee Claimed by @MetalPizzaCat View on GitHub
bug
Dominant language
C++
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
def main
var b = 2
var a = b + 0
end
```

should produce this asm code

```
mvi a, 02
sta 0810
lda 0810
adi 00
;or with mov a,a
sta 0811
hlt
```

but instead produces this, probably due to wrong offset in byte code
```
mvi a, 02
sta 0810
lda 0810
adi 00
mov a, b
sta 0811
hlt
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.