**** BEGIN LOGGING AT Wed Jul 27 23:59:56 2005 Jul 28 09:57:09 prpplague: hey man. I have some sad news. Jul 28 09:57:16 prpplague: (not too sad, really) Jul 28 09:57:52 beewoolie-afk: ? Jul 28 09:57:55 beewoolie-afk: do tell? Jul 28 09:57:59 prpplague: :-) Jul 28 09:58:19 prpplague: I just dicovered that the usleep function in APEX for the LH79520 is *completely* wrong. Jul 28 09:58:48 beewoolie-afk: doing some lh79520 testing? Jul 28 09:59:07 beewoolie-afk: seems like i fixed that when i was working on apex earlier Jul 28 09:59:19 I'm writing a SMC91x driver so that we can tftp from the lpd79520 and the lpd7a40x's. Jul 28 09:59:29 Did you forget to tell me? Jul 28 10:00:13 The thing I just realized is that the counter counts down. I had written the routine with the assumption that the counter counts up. Big oops. Jul 28 10:00:40 beewoolie-afk: yea, probably forgot, i had some patches ready for you, but never sent them Jul 28 10:00:52 prpplague: BTW, isn't there a clever way to divide by 5 without using division? Jul 28 10:01:15 * beewoolie-afk is furious for about a picosecond. Jul 28 10:01:48 beewoolie-afk: seems like their is, but arm asm isn't my strong point Jul 28 10:02:09 It's not an arm thing, but a binary math trick. Jul 28 10:02:19 flip the bits? Jul 28 10:02:41 beewoolie-afk: oh i thought you ment with arm syntax Jul 28 10:05:22 It's something like shift and subtract. Basically, I think it is a way to perform the same function as the divide instruction, but knowning the divisor makes it simpler. Jul 28 10:05:56 I was just thinking that if you find the most significant bit and then start flipping, you should get 1/2 Jul 28 10:06:03 010 / 2 = 001 Jul 28 10:06:15 right. Jul 28 10:06:32 /2 -> (>>1) Jul 28 10:06:54 If I remember is right, it's long division with binary math. Jul 28 10:08:14 but binary math was a looooooooong time ago for me Jul 28 10:08:35 So was reading, but I use it every day. :-) Jul 28 10:10:53 aha! I finally got my FrankenSlug's FrankenStein UBE serial cable working! Jul 28 10:10:54 woot Jul 28 10:20:05 Nice work. Jul 28 10:32:43 I have three more cables to-do... **** ENDING LOGGING AT Thu Jul 28 23:59:56 2005