Compile-time calculation: Difference between revisions
Content added Content deleted
m (→{{header|6502 Assembly}}: formatting) |
|||
Line 75: | Line 75: | ||
chrout = $ffd2 |
chrout = $ffd2 |
||
.code |
.code |
||
lda #<tenfactorial |
lda #<tenfactorial |
||
Line 91: | Line 91: | ||
rts |
rts |
||
.data |
.data |
||
; the actual value to print |
; the actual value to print |
||
tenfactorial: .byte 13,"10! = ",.string(10*9*8*7*6*5*4*3*2*1),13,0</lang> |
tenfactorial: .byte 13,"10! = ",.string(10*9*8*7*6*5*4*3*2*1),13,0</lang> |