Hi,   Is there a way to insert date and time in an assemb...

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hi,   Is there a way to insert date and time in an assemb...

1,279 Views
SVC2
Contributor II
Hi,
 
Is there a way to insert date and time in an assembly code (equivalent to __DATE__ and __TIME__ in C), Preferably as a long word rather than text.
 
Would like to have something like:
 
 
Code:
 .global _aDate .global _aTime    .data    _aDate: .long __DATE__  ; assembler MACRO_aTime: .long __TIME__  ; assembler MACRO .end

 
Thanks,
S.
 
Labels (1)
0 Kudos
1 Reply

259 Views
CrasyCat
Specialist III
Hello
 
Macro-assembler language does not support predefined symbols like an ANSI C or C++ compiler does.
 
Which assembler are you using? CodeWarrior?
There is no __DATE__ macro to retrieve assembling date in the CodeWarrior macro assembler.
 
CrasyCat
0 Kudos