annotate assembler

This commit is contained in:
Greg Gauthier 2025-01-17 15:17:21 +00:00
parent c775a15ab1
commit dee594874a

View File

@ -4,13 +4,15 @@
10 ; 10 ;
20 ;ADDNRS.SRC 20 ;ADDNRS.SRC
30 ; 30 ;
40 *=$0600 40 *=$0600 ; Begin program at 1536 decimal.
50 ; 50 ;
60 CLD 52 ; See notes below this snippet for details
70 ADDNRS CLC 54 ;
80 LDA #2 60 CLD ; Clear Decimal Mode
90 ADC #2 70 ADDNRS CLC ; Clear Carry
100 STA $CB 80 LDA #2 ; Load Accumulator From Immediate 2
110 RTS 90 ADC #2 ; Add Immediate 2 To Accumulator With Carry
120 .END 100 STA $CB ; Store Accumulator To Location 203
110 RTS ; Return To Stack
120 .END ; Program End Macro
</pre> </pre>