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,695件の閲覧回数
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 返信

675件の閲覧回数
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 件の賞賛
返信