From dee594874a59f3cd5bcf3b1eb5dcdc2d02da12db Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Fri, 17 Jan 2025 15:17:21 +0000 Subject: [PATCH] annotate assembler --- md/Atari/entries/two-plus-two.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/md/Atari/entries/two-plus-two.md b/md/Atari/entries/two-plus-two.md index 062a040..dab626f 100644 --- a/md/Atari/entries/two-plus-two.md +++ b/md/Atari/entries/two-plus-two.md @@ -4,13 +4,15 @@ 10 ; 20 ;ADDNRS.SRC 30 ; -40 *=$0600 +40 *=$0600 ; Begin program at 1536 decimal. 50 ; -60 CLD -70 ADDNRS CLC -80 LDA #2 -90 ADC #2 -100 STA $CB -110 RTS -120 .END +52 ; See notes below this snippet for details +54 ; +60 CLD ; Clear Decimal Mode +70 ADDNRS CLC ; Clear Carry +80 LDA #2 ; Load Accumulator From Immediate 2 +90 ADC #2 ; Add Immediate 2 To Accumulator With Carry +100 STA $CB ; Store Accumulator To Location 203 +110 RTS ; Return To Stack +120 .END ; Program End Macro \ No newline at end of file