code logs -> 2007 -> Sun, 14 Oct 2007< code.20071013.log - code.20071015.log >
--- Log opened Sun Oct 14 00:00:45 2007
00:28 gnolam [lenin@Nightstar-10613.8.5.253.static.se.wasadata.net] has quit [Quit: Z?]
00:33 Attilla [~The.Attil@194.72.70.ns-11849] has quit [Quit: <Insert Humorous and/or serious exit message here>]
00:37 * McMartin eyes this ad
00:37
<@McMartin>
"C# SQL and Ajax Skillz Needed"
00:37
<@McMartin>
I'm not convinced that it's possible to actually have skillz with those.
00:42 Netsplit Troika.TX.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: @Forj, +DiceBot, Mischief
00:44 Netsplit over, joins: Forj
00:44 mode/#code [+o Forj] by ChanServ
00:45 Attilla [~The.Attil@194.72.70.ns-11849] has joined #code
01:03 DiceBot [~Reiver@Nightstar-29323.ubs-dsl.xnet.co.nz] has joined #Code
01:13 Vornotron [~vorn@Admin.Nightstar.Net] has joined #code
01:15 Vornotron is now known as Vornicus
01:30 Thaqui [~Thaqui@Nightstar-26433.jetstream.xtra.co.nz] has joined #code
01:30 mode/#code [+o Thaqui] by ChanServ
02:52 McMartin [~mcmartin@Nightstar-6094.dsl.pltn13.sbcglobal.net] has quit [Quit: back later]
03:08
<@ToxicFrog>
http://bash.org/?696919
03:09
<@ToxicFrog>
bash.org/?696919
03:09
<@ToxicFrog>
It's so true.
06:43 GeekSoldier|bed [~Rob@Nightstar-5416.pools.arcor-ip.net] has joined #code
06:44 GeekSoldier|bed is now known as GeekSoldier
07:05 Vornicus is now known as Vornicus-Latens
08:38 Kyrre [~Z@87.72.35.ns-26506] has quit [Ping Timeout]
10:51 Forj [~Forj@Nightstar-2310.ue.woosh.co.nz] has quit [Quit: Gone]
11:01 gnolam [lenin@Nightstar-10613.8.5.253.static.se.wasadata.net] has joined #Code
11:01 mode/#code [+o gnolam] by ChanServ
11:22 You're now known as TheWatcher
11:24 Attilla [~The.Attil@194.72.70.ns-11849] has quit [Quit: <Insert Humorous and/or serious exit message here>]
12:42 Attilla [~The.Attil@194.72.70.ns-11849] has joined #code
12:45 AnnoDomini is now known as AbuDhabi
12:45 AbuDhabi is now known as AnnoDomini
13:43 Vornicus-Latens [~vorn@ServicesOp.Nightstar.Net] has quit [Ping Timeout]
13:53 Thaqui [~Thaqui@Nightstar-26433.jetstream.xtra.co.nz] has quit [Quit: This computer has gone to sleep]
14:00 Attilla [~The.Attil@194.72.70.ns-11849] has quit [Quit: <Insert Humorous and/or serious exit message here>]
14:41 GeekSoldier [~Rob@Nightstar-5416.pools.arcor-ip.net] has quit [Ping Timeout]
14:45 GeekSoldier [~Rob@Nightstar-5416.pools.arcor-ip.net] has joined #code
14:48 GeekSoldier [~Rob@Nightstar-5416.pools.arcor-ip.net] has quit [Ping Timeout]
14:49 GeekSoldier [~Rob@Nightstar-5416.pools.arcor-ip.net] has joined #code
14:55
<@AnnoDomini>
I have a problem. I have two sets of two 8bit cells. Each two cells represent a 16bit address in memory. Using two 8bit accumulators for calculations, I must determine determine the area of memory between them - first address is the start, second address is the end. I must know what length the space between them is. How do I do this?
14:57
<@AnnoDomini>
(If you need to know, this is programming of a Motorola 6800 processor.)
14:59
<@ToxicFrog>
6800, not 68000?
14:59
<@AnnoDomini>
Correct.
15:00
<@ToxicFrog>
Well, the short, flippant answer is "subtract the higher from the lower", but I have no idea how you do that in that processor.
15:00
<@ToxicFrog>
How many bits of register does the 6800 give you?
15:00
<@ToxicFrog>
Oh, right. Two 8-bit accumulators.
15:01
<@AnnoDomini>
Yes. That's my problem. I'm having difficulty establishing how to subtract these.
15:01
<@AnnoDomini>
Since they're twice as bloody large as the containers I have.
15:01
<@ToxicFrog>
Compare the high bytes to see which is higher. Subtract the lower from the higher. Then subtract the corresponding low bytes.
15:01
<@ToxicFrog>
If the high bytes are identical, the difference in the resulting high byte is 0, so compare and subtract the low bytes only.
15:02
<@ToxicFrog>
...oh, and there needs to be some additional logic to handle carry when subtracting the low bytes.
15:02
<@ToxicFrog>
Or possibly overflow, I forget which CCR gets set.
15:02
<@AnnoDomini>
You've grasped what my problem is, then.
15:03
<@ToxicFrog>
And solved it, I think.
15:05
<@AnnoDomini>
But what I need is that logic concerning the low bytes. As I've stated, this is what I have difficulty with.
15:07
<@gnolam>
If carry is set, subtract 1 from the higher byte?
15:08
<@AnnoDomini>
((Also, I don't need to determine which is higher. If the start address is after the end address, then the program should return an error.))
15:08
<@ToxicFrog>
You didn't actually say that, and yes, what gnolam said.
15:09
<@AnnoDomini>
"<AnnoDomini> Yes. That's my problem. I'm having difficulty establishing how to subtract these." <- I did. It's trivial to subtract the parts, but not just that simple for the whole.
15:24 Attilla [~The.Attil@194.72.70.ns-11849] has joined #code
15:28 GeekSoldier [~Rob@Nightstar-5416.pools.arcor-ip.net] has quit [Ping Timeout]
15:28 GeekSoldier [~Rob@Nightstar-5615.pools.arcor-ip.net] has joined #code
15:31 Doctor_Nick [~nick@Nightstar-23600.hsd1.fl.comcast.net] has quit [Client exited]
15:33
<@AnnoDomini>
Only the damn thing doesn't appear to have a carry lfga.
15:33
<@AnnoDomini>
*flag
15:37
<@ToxicFrog>
...
15:37
<@ToxicFrog>
What does it have?
15:37
<@AnnoDomini>
A negative flag. The others I'm not sure what they do.
15:39
<@ToxicFrog>
Well, what are they called?'
15:39
<@ToxicFrog>
And don't you have a reference manual?
15:39
<@AnnoDomini>
H N Z V I.
15:39
<@ToxicFrog>
Z is the zero-flag, V is the overflow-flag, I is the interrupt mask bit.
15:40
<@AnnoDomini>
What's H?
15:40
<@ToxicFrog>
No idea. The 68000 and the 68HC12 don't have one of those.
15:40
<@AnnoDomini>
Sort of, but I'll be damned if I was taught to understand what it says.
15:41
<@ToxicFrog>
?
15:41
<@ToxicFrog>
Aah. Refman.
15:41
<@AnnoDomini>
It seems to indicate that there is a carry flag, but one that isn't shown in the simulatore we use.
15:42
<@AnnoDomini>
H is supposed to be Half Carry. What's that mean?
15:42
<@ToxicFrog>
Don't recall.
15:43
<@ToxicFrog>
Anyways. What you really should be doing isn't checking the condition bits themselves, but the contract for SUB and friends, so that you know how it affects those bits.
15:43
<@ToxicFrog>
Then you'll know which one you need to check.
15:46 * AnnoDomini 's head explodes. It's madness. Total madness. They didn't teach us anything of this complexity, yet they demand that we know it.
15:47
<@AnnoDomini>
Enough of this for one day.
15:47 Vornotron [~vorn@Admin.Nightstar.Net] has joined #code
15:48 Vornotron is now known as Vornicus
15:48 * ToxicFrog goes back to working on a hex keypad driver with software debounce in MC68HC12 ASM
15:49 Vornicus is now known as NSGuest-1594
15:50 NSGuest-1594 is now known as Vornicus
15:55
< Vornicus>
debounce?
15:57
<@ToxicFrog>
When you close a switch - or button - the contacts actually hit each other and bounce away a few times.
15:57
<@ToxicFrog>
So for a few milliseconds, you have a very fast sequence of high-low-high-low-high-low signals.
15:58
<@ToxicFrog>
Debouncing is the process of filtering out these spurious keypresses.
16:16
<@gnolam>
Software debouncing? Ick.
16:33 dumped [~ericf@Nightstar-8541.gw.smartbro.net] has joined #Code
16:34 dumped [~ericf@Nightstar-8541.gw.smartbro.net] has left #Code []
17:02 tdhlooser [~ericf@Nightstar-8541.gw.smartbro.net] has joined #Code
17:09 tdhlooser [~ericf@Nightstar-8541.gw.smartbro.net] has left #Code []
18:13 AnnoDomini [AnnoDomini@Nightstar-28915.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
18:14 AnnoDomini [AnnoDomini@Nightstar-29095.neoplus.adsl.tpnet.pl] has joined #Code
18:14 mode/#code [+o AnnoDomini] by ChanServ
18:15 Netsplit DeepThought.NY.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: DiceBot
18:22 Netsplit over, joins: DiceBot
18:22 mode/#code [+v DiceBot] by ChanServ
18:23 Forj [~Forj@Nightstar-2310.ue.woosh.co.nz] has joined #code
18:23 mode/#code [+o Forj] by ChanServ
18:23 Netsplit DeepThought.NY.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: +DiceBot
18:35 Netsplit over, joins: DiceBot
18:35 mode/#code [+v DiceBot] by ChanServ
18:36 Netsplit Troika.TX.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: +DiceBot
18:36 Netsplit over, joins: DiceBot
18:36 mode/#code [+v DiceBot] by ChanServ
18:38 Netsplit DeepThought.NY.US.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: +DiceBot
18:41 Netsplit over, joins: DiceBot
18:41 mode/#code [+v DiceBot] by ChanServ
18:42 Netsplit Null.Nightstar.Net <-> Blargh.CA.US.Nightstar.Net quits: +DiceBot
18:49 Forj [~Forj@Nightstar-2310.ue.woosh.co.nz] has quit [Connection reset by peer]
19:16 GeekSoldier [~Rob@Nightstar-5615.pools.arcor-ip.net] has quit [Ping Timeout]
19:19 GeekSoldier [~Rob@Nightstar-5349.pools.arcor-ip.net] has joined #code
19:59 GeekSoldier [~Rob@Nightstar-5349.pools.arcor-ip.net] has quit [Ping Timeout]
20:00 GeekSoldier [~Rob@Nightstar-5349.pools.arcor-ip.net] has joined #code
20:03 GeekSoldier [~Rob@Nightstar-5349.pools.arcor-ip.net] has quit [Ping Timeout]
20:10 GeekSoldier [~Rob@Nightstar-4868.pools.arcor-ip.net] has joined #code
20:11 GeekSoldier is now known as GeekSoldier|bed
20:16 Thaqui [~Thaqui@Nightstar-26433.jetstream.xtra.co.nz] has joined #code
20:16 mode/#code [+o Thaqui] by ChanServ
20:28 Vornicus is now known as Vorn
20:28 Vorn is now known as Vornicus
20:41 Mischief] [~Genesis@Nightstar-7565.hsd1.md.comcast.net] has joined #code
20:56 Chalcedon [~Chalcedon@Nightstar-2310.ue.woosh.co.nz] has joined #code
20:56 mode/#code [+o Chalcedon] by ChanServ
21:10 You're now known as TheWatcher[afk]
22:13 ReivZzz is now known as ReivOut
22:26 Syloq [Syloq@NetAdmin.Nightstar.Net] has joined #code
22:26 You're now known as TheWatcher
22:27 Syloq is now known as Syloqs-AFH
22:48 * ToxicFrog grabs Haskell's type-inference mechanism and shakes it until a function reference falls out
22:50
<@ToxicFrog>
Theeeere we go.
22:54
<@AnnoDomini>
gnolam: You there?
22:55
<@AnnoDomini>
I need more advice on VHDL.
22:56
<@AnnoDomini>
http://pastie.caboo.se/107141 <- It tells me that in1, in2 and out1 are not declared.
22:57
<@AnnoDomini>
WHY THE FUCK is it saying that? They're right THERE, in the component declarations!
23:02
<@ToxicFrog>
What happens if you (1) make the case consistent between declaration and instantiation and (2) drop
23:02
<@ToxicFrog>
'entity' from the port map directives?
23:04
<@AnnoDomini>
Where is case inconsistent?
23:04
<@AnnoDomini>
I'll check.
23:05
<@AnnoDomini>
It compiles.
23:05 * AnnoDomini !!@#$%^&s.
23:05 * AnnoDomini adds the maker of that tutorial the teacher linked to to the list of people first against the wall.
23:06
<@ToxicFrog>
VHDL is, I think, meant to be case insensitive.
23:06
<@ToxicFrog>
However, not all compilers of it are.
23:06
<@ToxicFrog>
Or possibly it's the other way around.
23:07
<@ToxicFrog>
What was the problem, in the end? The case, or the entity keyword?
23:07
<@AnnoDomini>
Why in the world would the teacher link to a tutorial that gives syntax incompatible with the compiler?
23:07
<@AnnoDomini>
Entity.
23:08
<@AnnoDomini>
Thanks muchly, ToxicFrog!
23:11
<@ToxicFrog>
Oh god no
23:11
<@ToxicFrog>
Random number generation means monads
23:11
<@AnnoDomini>
Monads?
23:17
<@ToxicFrog>
Don't ask me, I still don't grok then.
23:17
<@ToxicFrog>
*them.
23:18
<@ToxicFrog>
They're both a confusing mathematical construct, and a way of doing IO and other stateful operations in pure functional languages without unraveling reality like a cheap shirt.
23:31
< Mischief]>
Or a shirt made of cheap beer.
--- Log closed Mon Oct 15 00:00:52 2007
code logs -> 2007 -> Sun, 14 Oct 2007< code.20071013.log - code.20071015.log >