nedoPC.org

Electronics hobbyists community established in 2002
Atom Feed | View unanswered posts | View active topics It is currently 04 Jun 2024 02:04



Reply to topic  [ 273 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11, 12 ... 19  Next
Tunguska the ternary emulator 
Author Message
Maniac

Joined: 17 Sep 2012 13:36
Posts: 277
Location: 81.170.128.52
Reply with quote
After some further minor fixes, I released 0.0.3 just now. =D


27 Mar 2008 11:30
Profile
Admin
User avatar

Joined: 08 Jan 2003 23:22
Posts: 22825
Location: Silicon Valley
Reply with quote
eudoxie wrote:
After some further minor fixes, I released 0.0.3 just now. =D


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
Profile WWW
Retired

Joined: 03 Aug 2003 22:37
Posts: 1474
Location: Moscow
Reply with quote
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
Profile
Maniac

Joined: 17 Sep 2012 13:36
Posts: 277
Location: 81.170.128.52
Reply with quote
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
Profile
Admin
User avatar

Joined: 08 Jan 2003 23:22
Posts: 22825
Location: Silicon Valley
Reply with quote
Mac Buster wrote:
Is there a way to read RTC data of host machine ? I'd like to write ternary clock for vrtual ternary machine :)


I can do special build with this functionality ;)


30 Apr 2008 16:55
Profile WWW
Retired

Joined: 03 Aug 2003 22:37
Posts: 1474
Location: Moscow
Reply with quote
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
Profile
Maniac

Joined: 17 Sep 2012 13:36
Posts: 277
Location: 81.170.128.52
Reply with quote
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
Profile
Retired

Joined: 03 Aug 2003 22:37
Posts: 1474
Location: Moscow
Reply with quote
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
Profile
Admin
User avatar

Joined: 08 Jan 2003 23:22
Posts: 22825
Location: Silicon Valley
Reply with quote
Mac Buster wrote:
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 :-)


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
Profile WWW
Maniac

Joined: 17 Sep 2012 13:36
Posts: 277
Location: 81.170.128.52
Reply with quote
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
Profile
Admin
User avatar

Joined: 08 Jan 2003 23:22
Posts: 22825
Location: Silicon Valley
Reply with quote
eudoxie wrote:
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.)


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
Profile WWW
Maniac

Joined: 17 Sep 2012 13:36
Posts: 277
Location: 81.170.128.52
Reply with quote
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

Code:
  LDA #agdp.WHEN
  STA agdp.OP


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
Profile
Admin
User avatar

Joined: 08 Jan 2003 23:22
Posts: 22825
Location: Silicon Valley
Reply with quote
http://nedopc.org/ternary/tunguska/tung ... _2-win.zip (1.2M)


Last edited by Shaos on 11 Nov 2012 17:50, edited 2 times in total.



08 May 2008 16:53
Profile WWW
Retired

Joined: 03 Aug 2003 22:37
Posts: 1474
Location: Moscow
Reply with quote
Great! I'm going to write ternary clock :lol:


10 May 2008 00:43
Profile
Maniac

Joined: 17 Sep 2012 13:36
Posts: 277
Location: 81.170.128.52
Reply with quote
Neat, would make a nice addition to programs in the main command prompt.


15 May 2008 06:10
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 273 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11, 12 ... 19  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.