flat assembler
Message board for the users of flat assembler.

Index > Projects and Ideas > Analog Clock

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
m



Joined: 28 Dec 2006
Posts: 304
Location: in
m 02 Mar 2007, 04:41
Hi Crukko !

Well ... i guess it can be compiled with Fasm without any problems(?).
Post 02 Mar 2007, 04:41
View user's profile Send private message Reply with quote
peter



Joined: 09 May 2006
Posts: 63
peter 02 Mar 2007, 08:34
@Crukko: No, C version was enough for me Smile. But m can freely use my ideas (reduced amout of drawing, sin/cos optimizations, etc) if they are interesting for him.
Post 02 Mar 2007, 08:34
View user's profile Send private message Visit poster's website Reply with quote
Crukko



Joined: 26 Nov 2005
Posts: 118
Crukko 02 Mar 2007, 10:07
@m: Your app can be compiled with no problem Wink
I was asking if you and peter are going to re-write interesting part he wrote in C...es: si/cos optimizations and so on...
Post 02 Mar 2007, 10:07
View user's profile Send private message Reply with quote
UCM



Joined: 25 Feb 2005
Posts: 285
Location: Canada
UCM 10 Mar 2007, 17:59
This reminds me, I made one a while ago....
It uses GDI+, to implement anti-aliasing.


Description:
Download
Filename: clock.asm
Filesize: 11.92 KB
Downloaded: 799 Time(s)


_________________
This calls for... Ultra CRUNCHY Man!
Ta da!! *crunch*
Post 10 Mar 2007, 17:59
View user's profile Send private message Reply with quote
white_wight



Joined: 03 Feb 2006
Posts: 24
white_wight 12 Mar 2007, 02:30
A small cosmetic update Wink


Description:
Download
Filename: ACLOCK2+.zip
Filesize: 5.63 KB
Downloaded: 778 Time(s)

Post 12 Mar 2007, 02:30
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 13 Mar 2007, 09:24
The hands definitely need to be different colors (or widths, at least) because it's somewhat hard(er) to read when close together.
Post 13 Mar 2007, 09:24
View user's profile Send private message Visit poster's website Reply with quote
m



Joined: 28 Dec 2006
Posts: 304
Location: in
m 14 Mar 2007, 09:56
Thanks white_wight !
The clock seems better now !

Hey rugxulo !
Code:
HH  = (R * 3 / 10)
MH  = (R * 5 / 10)
SH  = (R * 7 / 10)
    

In the lines above (from code) HH means hour-hand-size and so on ...
and 3/10 means 0.3rd of R (which is radius). Just change them to suit your needs.

I would personally patch, scratch, fiddle and tweak that stupid analog clock, but ... my system is down for 3-weeks now. It does'nt even power up.

It's dead as DEAD !
Post 14 Mar 2007, 09:56
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 16 Mar 2007, 00:48
m wrote:

I would personally patch, scratch, fiddle and tweak that stupid analog clock, but ... my system is down for 3-weeks now. It does'nt even power up.

It's dead as DEAD !


Doh! My condolences. Sad

Oh well, hopefully you can upgrade to something even better.
Post 16 Mar 2007, 00:48
View user's profile Send private message Visit poster's website Reply with quote
m



Joined: 28 Dec 2006
Posts: 304
Location: in
m 22 Mar 2007, 05:34
Thanks for you sensitive remarks !

Can some-one donate me a Pentium ! Wink

I'll bear courier charges.
Post 22 Mar 2007, 05:34
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 29 Mar 2007, 01:15
What exactly is wrong, the power won't turn on? (Thunderstorm or power failure recently?) Or there is just no Windows startup? Does it report a HD error? Can you still boot a floppy? Just curious (especially since booting a floppy still lets you play with various OSes: FreeDOS, DexOS, Menuet32, OctaOS).

(BTW, if it makes you feel better: this past week, both my P166's 3.5" floppy drive stopped working plus my old 486's CMOS battery died, and the 486 can't be booted b/c A: was already broken ... so I have to fix both of those, should be simple but unchartered territory for a dummy like me, heh).
Post 29 Mar 2007, 01:15
View user's profile Send private message Visit poster's website Reply with quote
m



Joined: 28 Dec 2006
Posts: 304
Location: in
m 29 Mar 2007, 13:11
Yeah rugxulo the PC does not power-up at all ?
Neither the power supply fan moves-a-bit nor the mother-board shows any signs of life.
Even the power-and-HDD-leds do not come up.
No, there was no bad-weather-caused thunder-storm or thunder-bolts.
The system died all-of-a-sudden !

And I can v e r y - w e l l feel your pain-and-anguish at the death of the two PCs.

My heart-felt-consolations to you.

What'll you do ? Now that both your PCs are dead, will they be thrown into a junk-yard as a useless-pile-of-metal ?

Will you buy a brand-new-64-bit PC for you now ?
Post 29 Mar 2007, 13:11
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 31 Mar 2007, 04:46
Well, they aren't quite dead (as yours probably isn't either), just minor problems. I swapped (w/ bro's help) cables for the broken 5.25" A: and the working 3.5" B: on the 486, so now I can at least boot a FreeDOS floppy (HD isn't accessible though, but that's not a big deal, never used it much). The P166 still works (barely), but the 3.5" floppy drive doesn't anymore (guess I used it too much, heh). I just need to buy a new one from wherever and install it.

I'm posting all this from our Dell Dimension 8200 Pentium 4 2.52 Ghz (c. 2002), whose fan recently was making TONS of noise. Cleaning it didn't help, and putting in a new (but non-OEM) fan kept saying, "Press F1 to Continue or F2 for Setup" every frickin' time it started up ... and F1 just silently crashed, so you had to press F2 and then ESC for it to work. I upgraded the BIOS from A05 to A09 (via very minimal FreeDOS bootdisk, took about 5 secs.), and it still didn't stop the error message (although, FYI, the computer still booted / fully worked either way ... just that annoyance was ridiculous). So, finally, this morning, we swapped in an official Dell fan, and it doesn't complain anymore. (And Dell tech. support had said, "You can use any fan", which is technically true but annoying. Razz )

Personally? Yeah, I'd probably get a cheap Turion64 notebook, but everyone keeps telling me, "Don't get HP or Compaq, get a Dell, everything else is crap", which just can't be true (can it?). I've seen wildly different prices too, and I'm a pretty cheap bastard, so that's why I still use a half-dead P166. (Of course, being a huge fan of DOS software doesn't hurt. I enjoy testing floppy OSes [FreeDOS, Minix, OctaOS, Menuet32, DexOS, NetBSD], heh, probably why it broke, too much use!)

Sounds like your power supply is on the fritz. I heard once that a blackout can make a PSU go into safety mode or whatever (hence the thunderstorm inquiry), and that it needs to be unplugged from the cpu rear for a few minutes then reinserted to correct itself.

Anyways, I wouldn't necessarily throw it out: just get a new PSU (unless you just really want to upgrade, which ain't a horrible idea considering the vast hardware improvements we've seen recently). If possible, I'd keep the working parts (RAM, mouse, video card, etc.) even if upgrading. You never know when they'll come in handy. Also, don't forget eBay! Wink

EDIT: Okay, the Dell's problem with F1 is related to the "Ultra IDE BIOS" extension for an external hard drive (at least, I think so, it asks for optional F1 keypress at bootup). And I can access the hard drive on the 486 now (thanks to low-level disk tools which ignore the BIOS, e.g. wde or pfdisk or ide_conf or whatever, I forget exactly), but I have to reset the C/H/S in the BIOS upon every boot ("1001","15","34" ... at least until / unless I replace the CMOS battery, doh). Razz


Last edited by rugxulo on 05 Jun 2007, 13:45; edited 1 time in total
Post 31 Mar 2007, 04:46
View user's profile Send private message Visit poster's website Reply with quote
m



Joined: 28 Dec 2006
Posts: 304
Location: in
m 01 Apr 2007, 07:57
Wow hoooooo !
Thanks RugXulo !
Quote:

and I'm a pretty cheap bastard
and I'm cheaper ! ! !
Post 01 Apr 2007, 07:57
View user's profile Send private message Reply with quote
m



Joined: 28 Dec 2006
Posts: 304
Location: in
m 01 Jul 2007, 10:31
I have downloaded it myself (now).
I will try to convert it into high level (macro based) syntax.

_________________
Attitude!
Post 01 Jul 2007, 10:31
View user's profile Send private message Reply with quote
m



Joined: 28 Dec 2006
Posts: 304
Location: in
m 01 Jul 2007, 11:52
On second thought Idea I think I should rewrite it in C++/Java/Python etc.
Any takers Exclamation

_________________
Attitude!
Post 01 Jul 2007, 11:52
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo 01 Jul 2007, 23:01
Python, Ruby, and Perl ... all moving towards a virtual machine to interpret byte-code (or whatever). They all want to be like Java, for some reason. Why, weren't they good enough? (Guess not because they're all gonna be incompatible with old code, big time.)
Post 01 Jul 2007, 23:01
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.