Compile-time calculation: Difference between revisions

m
Line 60:
{{works with|ca65}}
 
The ca65 cross-assembler supports computing and storing double-word (32-bit) integer values; unfortunately most 8-bit systems have no built-in support for manipulating such values. But the assembler also supports converting such valuesthem directly to strings, which are easily printed at runtime. So, here's a straightforward Commodore port:
 
<lang 6502>; Display the value of 10!, which is precomputed at assembly time
1,480

edits