ataricode.com/content/blog/post-3.md

576 B

title date tags description draft
What Is 2+2? 2023-01-24T13:52:39Z
assembler
accumulator
coding
Writing our first program! false

For my first outing, I've decided to go with the simplest possible coding project I could imagine: adding 2 and 2, to get 4. I call it the "Winston Smith" Demo, for obvious reasons!

{{<odysee "winston-smith-demo" >}}

This is the code from the video:

{{< rawhtml >}}

10 ;
20 ;ADDNRS.SRC
30 ;
40  *=$0600
50 ;
60  CLD
70 ADDNRS CLC
80  LDA #2
90  ADC #2
100  STA $CB
110  RTS
120  .END

{{< /rawhtml >}}