RosettaCodeData/Task/Compile-time-calculation/68000-Assembly/compile-time-calculation.68000

6 lines
263 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
tenfactorial equ 10*9*8*7*6*5*4*3*2
MOVE.L #tenfactorial,D1 ;load the constant integer 10! into D1
LEA tenfactorial,A1 ;load into A1 the memory address 10! = 0x375F00
ADD.L #tenfactorial,D2 ;add 10! to whatever is stored in D2 and store the result in D2