Search the web
Sign In
New User? Sign Up
vmu-dev · The VMU Development list
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
question about the vmu clock   Message List  
Reply | Forward Message #887 of 1156 |
Re: [vmu] question about the vmu clock

Ok,I think I get it now.

hour = getsysvar: $1b
minute = getsysvar: $1c
second = getsysvar: $1d

I'll go try it,thanks.

--- In vmu-dev@y..., "M. Jumper" <mj98765@y...> wrote:
> it does, but you have to know the address of the
> system variable.
> Since time is stored in system variables (which are
> stored in a different area of memory), you have to use
> the getsysvar function.
> For example, the seconds are stored in address $1d,
> to retrieve it, you'd type this:
> my_variable = getsysvar: $1d
>
> I hope this helps. If you aren't sure which addresses
> are used for which system variables, check with
> Marcus's site. It'll be at his VMS Firmware page.
>
> --- vmufan@y... wrote:
> > how do I get the current VMU time to a variable?
> >
> > I do my VMU programing with the compiler and it does
> > not feature that command (I think)
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com




Thu Oct 18, 2001 4:50 am

vmufan
Offline Offline
Send Email Send Email

Forward
Message #887 of 1156 |
Expand Messages Author Sort by Date

how do I get the current VMU time to a variable? I do my VMU programing with the compiler and it does not feature that command (I think)...
vmufan@...
vmufan
Offline Send Email
Oct 17, 2001
3:57 am

it does, but you have to know the address of the system variable. Since time is stored in system variables (which are stored in a different area of memory),...
M. Jumper
mj98765
Offline Send Email
Oct 18, 2001
12:12 am

Ok,I think I get it now. hour = getsysvar: $1b minute = getsysvar: $1c second = getsysvar: $1d I'll go try it,thanks....
vmufan@...
vmufan
Offline Send Email
Oct 18, 2001
4:50 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help