Author |
Message |
eudoxie
Maniac
Joined: 17 Sep 2012 13:36 Posts: 277 Location: 81.170.128.52
|
After some further minor fixes, I released 0.0.3 just now. =D
|
27 Mar 2008 11:30 |
|
|
Shaos
Admin
Joined: 08 Jan 2003 23:22 Posts: 22825 Location: Silicon Valley
|
One more "unofficial" build for Windows is ready:
http://nedopc.org/ternary/tunguska/tung ... _1-win.zip (1.2M)
It includes new examples "snow.asm" and "ants.asm", alternative assembler RASM (now supports new commands XAM, XAX, XAY, XYX, PAUSE) and some examples for it.
Last edited by Shaos on 11 Nov 2012 17:50, edited 1 time in total.
|
30 Mar 2008 20:07 |
|
|
Mac Buster
Retired
Joined: 03 Aug 2003 22:37 Posts: 1474 Location: Moscow
|
Is there a way to read RTC data of host machine ? I'd like to write ternary clock for vrtual ternary machine
|
29 Apr 2008 21:45 |
|
|
eudoxie
Maniac
Joined: 17 Sep 2012 13:36 Posts: 277 Location: 81.170.128.52
|
I looked into it a while back, but I found no way of implementing it that didn't either slaughter performance or look really ugly.
Maybe some time in the future I'll find some satisfying way of implementing it.
|
30 Apr 2008 10:13 |
|
|
Shaos
Admin
Joined: 08 Jan 2003 23:22 Posts: 22825 Location: Silicon Valley
|
I can do special build with this functionality
|
30 Apr 2008 16:55 |
|
|
Mac Buster
Retired
Joined: 03 Aug 2003 22:37 Posts: 1474 Location: Moscow
|
Well, that would be just great I think there should be an address what will hold current huor, minute and second values (and of course it does not have to be updated every second, update-on-read-request is enought).
|
01 May 2008 23:59 |
|
|
eudoxie
Maniac
Joined: 17 Sep 2012 13:36 Posts: 277 Location: 81.170.128.52
|
I dislike the idea of implementing what is really OS-level functionality into the hardware level of the machine: I think on a hardware level the best way to represent time is something like UNIX time_t, the number of seconds relative to some date, since that is easier for a computer to understand than a mixed-radix time measurement like (year:month:day:)hour:minute:second.
But, since Tunguska's OS is pretty lacking at this stage, it might be possible to add this sort of functionality to the AGDP until it can be properly implemented in the OS.
|
04 May 2008 02:43 |
|
|
Mac Buster
Retired
Joined: 03 Aug 2003 22:37 Posts: 1474 Location: Moscow
|
Well, I didn't say that you have to store date and time in separate thrytes, you can use that UNIX way as well. Just give to programmes a way to read it
|
04 May 2008 13:24 |
|
|
Shaos
Admin
Joined: 08 Jan 2003 23:22 Posts: 22825 Location: Silicon Valley
|
Actually it has to be separate trytes, because any RTC does this. Personally I never met computer hardware that has UNIX time on RTC level
|
04 May 2008 17:47 |
|
|
eudoxie
Maniac
Joined: 17 Sep 2012 13:36 Posts: 277 Location: 81.170.128.52
|
Not specifically UNIX time, perhaps, but IBM BIOS for an example, gives you time in seconds or milliseconds passed since some epoch ( atleast according to wikipedia.)
It would be very strange for a real time clock to do this sort of a thing on a mixed-radix basis, since they essentially just count the number of oscillations of a quartz crystal. It is much easier to implement a simple second or msecond counter in hardware than one that does second-minute-hour-day spillover in separate fields.
|
05 May 2008 03:55 |
|
|
Shaos
Admin
Joined: 08 Jan 2003 23:22 Posts: 22825 Location: Silicon Valley
|
That page on wikipedia describes software methods to retrieve absolute time, but RTC usually has separated values for date and time: http://linux.die.net/man/4/rtc
|
05 May 2008 04:22 |
|
|
eudoxie
Maniac
Joined: 17 Sep 2012 13:36 Posts: 277 Location: 81.170.128.52
|
I stand corrected.
I've added a new instruction AGDP_WHEN that stores the first six fields from struct tm in the AGDP registers to the CVS. To access it, call the following
Fields are:
agdp.R1 -- second
agdp.R1+1 -- minute
agdp.R2 -- hour
agdp.R2+1 -- day of month
agdp.R3 -- month
agdp.R3+1 -- year
|
05 May 2008 10:46 |
|
|
Shaos
Admin
Joined: 08 Jan 2003 23:22 Posts: 22825 Location: Silicon Valley
|
Last edited by Shaos on 11 Nov 2012 17:50, edited 2 times in total.
|
08 May 2008 16:53 |
|
|
Mac Buster
Retired
Joined: 03 Aug 2003 22:37 Posts: 1474 Location: Moscow
|
Great! I'm going to write ternary clock
|
10 May 2008 00:43 |
|
|
eudoxie
Maniac
Joined: 17 Sep 2012 13:36 Posts: 277 Location: 81.170.128.52
|
Neat, would make a nice addition to programs in the main command prompt.
|
15 May 2008 06:10 |
|
|