--- title: "What Is 2+2?" date: 2023-01-24T13:52:39Z tags: ["assembler", "accumulator", "coding"] description: Writing our first program! draft: 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! {{}} 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 >}}