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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,700 次查看
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.
 
标签 (1)
0 项奖励
回复
1 回复

680 次查看
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 项奖励
回复