News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

How can I change the date on microscheme clock real time?

Started by asm, February 08, 2013, 07:04:34 AM

Previous topic - Next topic

asm

How can I change the date on microscheme clock real time?

hfheatherfox07

Hello,
You posted the same question here:
http://stackoverflow.com/questions/14759271/how-can-i-change-the-date

What do you mean ?

You want to reprogram a chip???

You use a programming language to write apps for windows or what ever OS



Your code and your skills will be assimilated. Your programming language is irrelevant.
We are the ASM Borg and you will become part of us. Compile and be assembled.

asm

Quote from: hfheatherfox07 on February 08, 2013, 07:43:15 AM
You use a programming language to write apps for windows or what ever OS
Yes, for windows

Quote from: hfheatherfox07 on February 08, 2013, 07:43:15 AM
What do you mean ?

You want to reprogram a chip???

No, just change the date in system clock tray using asm

qWord

Take a look at Window's Time Functions. Changing the System time probably also needs higher rights.
MREAL macros - when you need floating point arithmetic while assembling!

hfheatherfox07

You may need to turn off Internet clock cync


http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/windows_date_turn_off_synch.mspx?mfr=true
Your code and your skills will be assimilated. Your programming language is irrelevant.
We are the ASM Borg and you will become part of us. Compile and be assembled.

asm

Quote from: hfheatherfox07 on February 08, 2013, 08:16:36 AM
You may need to turn off Internet clock cync


http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/windows_date_turn_off_synch.mspx?mfr=true


thanks, i understand.
What about code? What language construction i must use to do it?

hfheatherfox07

Quote from: qWord on February 08, 2013, 08:02:05 AM
Take a look at Window's Time Functions. Changing the System time probably also needs higher rights.

qWord is right .... :biggrin:

Invoke setsystemtime

See here :
http://www.masmforum.com/board/index.php?topic=1944.0
Your code and your skills will be assimilated. Your programming language is irrelevant.
We are the ASM Borg and you will become part of us. Compile and be assembled.

asm

Quote from: hfheatherfox07 on February 08, 2013, 08:35:59 AM
Quote from: qWord on February 08, 2013, 08:02:05 AM
Take a look at Window's Time Functions. Changing the System time probably also needs higher rights.

qWord is right .... :biggrin:

Invoke setsystemtime

See here :
http://www.masmforum.com/board/index.php?topic=1944.0
i make easier:
.model tiny
.code
org 100h

off equ -2
start:
mov ah, 2ah ;read date
mov bl, dl
int 21h
mov  ah,2bh

add dl,off
int  21h



mov  ah,4ch
int  21h
 

end start

Gunther

Hi asm,

the code, which you've presented is 16 bit code and won't work; it'll hang, because your program will never come back to the operating system (DOS).

Gunther
You have to know the facts before you can distort them.

asm

Quote from: Gunther on February 08, 2013, 09:46:15 AM
Hi asm,

the code, which you've presented is 16 bit code and won't work; it'll hang, because your program will never come back to the operating system (DOS).

Gunther
i dont know what you are talking about. I execute this code on win7 x86. It is working awesome)