# Why does it print all the registers as 0?

**URL:** <https://forum.makecode.com/t/why-does-it-print-all-the-registers-as-0/22575>\
**Category:** Help\
**Tags:** make\
**Created:** [September 18, 2023, 5:10pm UTC](https://forum.makecode.com/t/why-does-it-print-all-the-registers-as-0/22575 "2023-09-18T17:10:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![technonux](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/technonux/32/7924_2.png) [@technonux](https://forum.makecode.com/u/technonux)\
**Post date:** [September 18, 2023, 5:10pm UTC](https://forum.makecode.com/t/why-does-it-print-all-the-registers-as-0/22575/1 "2023-09-18T17:10:31Z")

</div>

> **[SimpleCpu](https://arcade.makecode.com/S33904-95478-68301-38860)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

```auto
Program = [
    1, 1, 4, // set reg 1 to 4
    2, 2, 0, // moves the value of reg 1 to reg 2
    3, 1, // set reg opcode input
    6, 2, 2, // adds reg 2 to reg 2, aka just doubling
    7 // halts
]

```

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [September 19, 2023, 4:33pm UTC](https://forum.makecode.com/t/why-does-it-print-all-the-registers-as-0/22575/2 "2023-09-19T16:33:01Z")

</div>

if all he values start at zero nothing will change cuz ya know

```auto
0 ** 2 = 0 (aka 2 * 2)
0 + 0 = 0

```

so ya you only have 0 so you only get 0

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [September 19, 2023, 4:33pm UTC](https://forum.makecode.com/t/why-does-it-print-all-the-registers-as-0/22575/3 "2023-09-19T16:33:08Z")

</div>

i think… i don’t know what you input so ya (like what the values are set to at the start)
