| Author |
Message |
BobTheDog

Joined: Feb 28, 2005 Posts: 4044 Location: England
Audio files: 32
G2 patch files: 15
|
Posted: Wed Jul 23, 2008 6:26 am Post subject:
Working Day Subject description: How boring is yours. |
 |
|
I am so bored with my day working today so was wondering what you lot are doing.
I am porting code from Irix to Windows to extract JPEG keyframes from MPEG video, yawn. |
|
|
Back to top
|
|
 |
Alexander

Joined: Apr 22, 2006 Posts: 373 Location: NL/QC
Audio files: 1
G2 patch files: 4
|
Posted: Wed Jul 23, 2008 6:29 am Post subject:
|
 |
|
Selling apples, booohoooring!  _________________ http://husc-sound.com |
|
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24119 Location: The Netherlands, Enschede
Audio files: 279
G2 patch files: 320
|
Posted: Wed Jul 23, 2008 6:32 am Post subject:
|
 |
|
I'm trying to make sense of an ICE trace ... when the code reads the i2c clock it kills the debug output for some reason ...
| Code: |
0044AC EC34 CCLOCKWRITEBLOCK
CALL 0x68, 0 ---- -- ---- --
004469 0000 NOP ---- -- ---- --
004468 EC3A CCLOCKSETUP
CALL C283ER29, 0 ---- -- ---- --
00446A F005 *FNOP* ---- -- ---- --
000A74 6E5A C283ER29
MOVWF tmp1, ACCESS ---- -- ---- --
000A76 50ED MOVF POSTDEC0, W, ACCESS ---- -- tmp1 01
000A78 06E1 DECF FSR1L, F, ACCESS 00104 09 W 09
000A7A C05A MOVFF tmp1, INDF1 FSR1L 47 FSR1L 46
000A7C FFE7 NOP tmp1 01 ---- --
000A7E 0012 RETURN 0 ---- -- 00046 01
000A80 6EEC *FNOP* ---- -- ---- --
00446C 6EEC MOVWF PREINC0, ACCESS ---- -- ---- --
00446E 0E00 MOVLW 0 ---- -- 00104 09
004470 EC35 CALL C28R3E29, 0 ---- -- W 00
004472 F005 *FNOP* ---- -- ---- --
000A6A CFE6 C28R3E29
... and 900 more lines ....
|
_________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
|
Back to top
|
|
 |
BobTheDog

Joined: Feb 28, 2005 Posts: 4044 Location: England
Audio files: 32
G2 patch files: 15
|
Posted: Wed Jul 23, 2008 6:52 am Post subject:
|
 |
|
| Thats greek Jan! |
|
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24119 Location: The Netherlands, Enschede
Audio files: 279
G2 patch files: 320
|
Posted: Wed Jul 23, 2008 7:10 am Post subject:
|
 |
|
| BobTheDog wrote: | | Thats greek Jan! |
I knew there would be a good reason why I don't understand it  _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
|
Back to top
|
|
 |
kkissinger

Joined: Mar 28, 2006 Posts: 1369 Location: Kansas City, Mo USA
Audio files: 43
|
Posted: Wed Jul 23, 2008 7:26 am Post subject:
|
 |
|
| Blue Hell wrote: | | BobTheDog wrote: | | Thats greek Jan! |
I knew there would be a good reason why I don't understand it  |
Arrgh!! Uncommented assembler source code! What a groan.
When I started out in programming I was into the "macho" notion of tracing machine code, patching in hex, etc etc.
Nowadays, I want commented high-level language that doesn't require much thought. My primary motive is to keep my weekends and evenings from being ruined.
I never implement new code on Fridays.  _________________ -- Kevin
http://kevinkissinger.com |
|
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24119 Location: The Netherlands, Enschede
Audio files: 279
G2 patch files: 320
|
Posted: Wed Jul 23, 2008 7:55 am Post subject:
|
 |
|
| kkissinger wrote: | | Arrgh!! Uncommented assembler source code! |
It's no source code but an ICE trace rather with disassembled code - I'm not that nuts  _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24119 Location: The Netherlands, Enschede
Audio files: 279
G2 patch files: 320
|
Posted: Wed Jul 23, 2008 7:58 am Post subject:
|
 |
|
| kkissinger wrote: | | I never implement new code on Fridays. :) |
I've implemented the code over a good many weeks without having a hardware platform so I could not really test it .. I simulated the critical stuff though ... but ideally one should test immediately after coding .. I agree. _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
|
Back to top
|
|
 |
Antimon
Joined: Jan 18, 2005 Posts: 4145 Location: Sweden
Audio files: 371
G2 patch files: 100
|
|
|
Back to top
|
|
 |
Pehr

Joined: Aug 14, 2005 Posts: 1307 Location: Björkvik, Sweden
Audio files: 2
|
|
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24119 Location: The Netherlands, Enschede
Audio files: 279
G2 patch files: 320
|
Posted: Wed Jul 23, 2008 8:46 am Post subject:
|
 |
|
| Antimon wrote: | | I'm on the third day of my five week vacation. |
That's bloody
 _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
|
Back to top
|
|
 |
Rykhaard
Joined: Sep 02, 2007 Posts: 1290 Location: Canada
|
Posted: Wed Jul 23, 2008 9:09 am Post subject:
|
 |
|
There are assembly coders here, I do thinks??
Years upon millennia ago, I studied and partially taught myself assembly around 6800's, 8080's, 6502's, 6510s and the 68705 (for which I had the equivalent of today's PIC systems), but I never went any further.
Now - I've forgotten almost everything, never having done any actual programming in assembler. But, I have a task, that I haven't been able to complete yet.
Would any of you fine coders out there, by CHANCE, know of where I could find a DIS-assembler that would understand (if I'm not mistaken in phrasing this) assembled 6809 code for the Radio Shack Color Computer??
To this day, there has been my most favourite ever text adventure game since 1982, that I'd LOVE to see how it works. But I haven't been able to find ANYthing that will load the actual code?
Would anyone know what I'm looking for and whether it may be available?
(There was still a web site FOR the game about a year ago, but it's designer wasn't responding to email at all.)
Thanks for any possibilities.
Rych - the Basic / HTML 2.0 only, programmer.  |
|
|
Back to top
|
|
 |
BobTheDog

Joined: Feb 28, 2005 Posts: 4044 Location: England
Audio files: 32
G2 patch files: 15
|
Posted: Wed Jul 23, 2008 9:18 am Post subject:
|
 |
|
| Blue Hell wrote: | | Antimon wrote: | | I'm on the third day of my five week vacation. |
That's bloody
 |
Cruel, so cruel. |
|
|
Back to top
|
|
 |
Wayne Higgins

Joined: Aug 16, 2007 Posts: 270 Location: Greenville, FL
Audio files: 1
|
Posted: Wed Jul 23, 2008 10:12 am Post subject:
|
 |
|
Boring!?! You want boring?!?!?!?
Total Suspended solids: filter the sample, dry the filter containg residue, weigh the filter, return filter to oven, weigh again
Total Dissloved solids: weigh the crucible, filter the sample, take the filtrate, put it in the crucible, dry it, weigh it, return to the oven, weigh it again.
Total solids: see above, just don't filter
Volatile solids: see all above, then burn off in 550 degree celcius oven, weigh
pH: stick a pH probe in a sample
COD: put sample in a vial with reagets, shake, cook for two hours, cool for two hours, read on spectrometer
BOD: take sample (with dilutions), add seed, read dissolved O2, incubate for 5 days, read O2 again.
Metals: digest sample in acid, stick probe in sample, watch it go up a little plastic tube, press start on computer take probe out when done.
Ignitiability: Heat sample with flame, thermometer in sample, if sample ignites, write down the temperature.
NO2, NO3, NO3+NO2, NH3, TKN OPO4, TP, Cl, ect....: put samples in machine, press start.
GOD, PLEASE SEND SOMEONE TO BUY MY MUSIC!!!!!!!!!!!!!! _________________ http://www.virb.com/waynehiggins
http://www.myspace.com/waynehiggins |
|
|
Back to top
|
|
 |
BobTheDog

Joined: Feb 28, 2005 Posts: 4044 Location: England
Audio files: 32
G2 patch files: 15
|
Posted: Wed Jul 23, 2008 10:18 am Post subject:
|
 |
|
| That actually sounds quite interesting! |
|
|
Back to top
|
|
 |
Antimon
Joined: Jan 18, 2005 Posts: 4145 Location: Sweden
Audio files: 371
G2 patch files: 100
|
Posted: Wed Jul 23, 2008 10:19 am Post subject:
|
 |
|
| Rykhaard wrote: | | To this day, there has been my most favourite ever text adventure game since 1982, that I'd LOVE to see how it works. But I haven't been able to find ANYthing that will load the actual code? |
I'm curious - what's the name of the adventure game?
Sorry about the other OT post, I just couldn't resist.
/Stefan _________________ Antimon's Window
@soundcloud @Flattr home - you can't explain music |
|
|
Back to top
|
|
 |
Rykhaard
Joined: Sep 02, 2007 Posts: 1290 Location: Canada
|
Posted: Wed Jul 23, 2008 10:23 am Post subject:
|
 |
|
| Antimon wrote: | | Rykhaard wrote: | | To this day, there has been my most favourite ever text adventure game since 1982, that I'd LOVE to see how it works. But I haven't been able to find ANYthing that will load the actual code? |
I'm curious - what's the name of the adventure game?
|
Madness and The Minotaur
| Quote: |
Sorry about the other OT post, I just couldn't resist.
/Stefan |
Me too actually.
Sometimes I don't have boredom at work, with my brain being free enough to design things for my modular whilst waiting for a test process to finish.
It's the test processes that require babysitting, where my brain is tied up that are actually more frustrating (in not being able to design) than boring. At least I'm working and getting paid though, and can afford to buy parts.  |
|
|
Back to top
|
|
 |
Wayne Higgins

Joined: Aug 16, 2007 Posts: 270 Location: Greenville, FL
Audio files: 1
|
|
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24119 Location: The Netherlands, Enschede
Audio files: 279
G2 patch files: 320
|
Posted: Wed Jul 23, 2008 12:27 pm Post subject:
|
 |
|
| Antimon wrote: | Sorry about the other OT post, I just couldn't resist. |
You deserved a holiday, I'm sure. _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
|
Back to top
|
|
 |
Acoustic Interloper

Joined: Jul 07, 2007 Posts: 2070 Location: Berks County, PA
Audio files: 89
|
Posted: Wed Jul 23, 2008 12:45 pm Post subject:
|
 |
|
| Blue Hell wrote: | | I'm trying to make sense of an ICE trace ... when the code reads the i2c clock it kills the debug output for some reason ... |
Does that clock drive the debug output trace data flow, and does reading the clock affect its operation? It sounds like the clock and the debug trace share some hardware resource that the read operation is stepping on. Just a shot in the dark
I'm cleaning up some graphing code I've been writing for a DSP simulator under Eclipse. It's not bad, yesterday I got to write my first Java reflection code in a while, to save and restore a bunch of varying-type config data by just entering their field names in an array that my reflective code reads and then goes and finds them and does the save / restore. Otherwise it would be a special case for each field. It's shorter and probably less error prone than the code-copy-and-paste approach.
Interleaved with this is some testing of my EM2008 setup on my Mac, in case my Alienware XP machine dies, porting pretty much successful. And now I am going to draft a syllabus for one of the courses I'll be teaching this fall. And my stomach has been giving me some trouble since last night. And we're getting ready to go attend our son's audio school graduation up in Canada, can't wait to see him, although he'll be leaving in another month to live with his sister Out West for a year. Miss the kids . . . _________________ When the stream is deep
my wild little dog frolics,
when shallow, she drinks. |
|
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24119 Location: The Netherlands, Enschede
Audio files: 279
G2 patch files: 320
|
Posted: Wed Jul 23, 2008 1:33 pm Post subject:
|
 |
|
| Acoustic Interloper wrote: | It sounds like the clock and the debug trace share some hardware resource that the read operation is stepping on. Just a shot in the dark |
Likely it's memory ... what happens is that debug data packets still get sent out but the length is incorrect (there are bytes missing) which is then detected by the receiver as a CRC error (the packets as such have no length info, but I do know what's being transmitted of course).
The debug message that I want does in fact read the clock to tell it's time on the debug screen, but it doesn't really matter what the contents of the debug message are. Whenever I read from or write to the i2c clock device while the packet is still partially in the serial port's xmit buffer that packet will get corrupted. Its very repeatable in that the exact manifestation of the problem will change with code changes but for given code it's always the same bytes missing.
When I make dummies for the clock access code or when I delay clock access till all the bytes are sent out the problem is gone, so it is in the clock access most likely and I did in fact change that code making it even more likely ... however ... when I comment out the debug activity I can find no memory accesses to the serial port buffer administration when running the low level clock code ... it's driving me nuts ... the ICE traces I make look OK, I see nothing odd ...
Now there is another way to loose bytes, and that's by disabling the rs232 level shifter which can be done from code (for power saving), but I didn't see such a thing on the scope sofar - and yet it should be substantial glitches the shortest one the software can make is 400 ns or so, but I'm running the port at 9600 Baud currently, so that would need something of the order of 1 ms to kill an entire byte ....
Well, at least it's not boring  _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
|
Back to top
|
|
 |
DrJustice

Joined: Sep 13, 2004 Posts: 2114 Location: Morokulien
Audio files: 4
|
Posted: Wed Jul 23, 2008 2:42 pm Post subject:
|
 |
|
| Rykhaard wrote: | | Would any of you fine coders out there, by CHANCE, know of where I could find a DIS-assembler that would understand (if I'm not mistaken in phrasing this) assembled 6809 code for the Radio Shack Color Computer?? |
This page has a 6809 disassembler. Here's more, and here, here, here and here are yet more. Some are Windows executables, some are just C sources and some are packages of both. Hopefully you'll find somthing usable. Never tried any of them though.
As for work, it's not boring
DJ
-- |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Wed Jul 23, 2008 8:49 pm Post subject:
|
 |
|
I slept all day after working all night on fun hardware and software projects. I have no job, so instead I work on music projects all the time. My current project is the Guitar Motion Sensor, which will allow guitarists to control effects by gyrating around on stage. Pull up to make it squeal, get a reverb sweep by twisting your torso, etc.
Tonight I put in a 6-string guitar to 6-string bass guitar converter option. It's just a pitch shifter that shifts down to 30/82 of the original frequency and all the string open frequencies line up like magic, how about that? The math behind the music, eh? Coolness. _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
Rykhaard
Joined: Sep 02, 2007 Posts: 1290 Location: Canada
|
Posted: Wed Jul 23, 2008 9:03 pm Post subject:
|
 |
|
| DrJustice wrote: | | Rykhaard wrote: | | Would any of you fine coders out there, by CHANCE, know of where I could find a DIS-assembler that would understand (if I'm not mistaken in phrasing this) assembled 6809 code for the Radio Shack Color Computer?? |
This page has a 6809 disassembler. Here's more, and here, here, here and here are yet more. Some are Windows executables, some are just C sources and some are packages of both. Hopefully you'll find somthing usable. Never tried any of them though.
As for work, it's not boring
DJ
-- |
Whoa! Yet site unseen, thankee greatly!! Shall see where I can get to, from checking the site out! Maybe finally after 26 years of playing the game on and off (and never beating it) I'll be able to see how it all works in it's miniscule 16k of code.  |
|
|
Back to top
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Wed Jul 23, 2008 10:35 pm Post subject:
|
 |
|
Nice find, Dr. J. Nice to know the classics still survive. _________________ "Let's make noise for peace." - Kijjaz |
|
|
Back to top
|
|
 |
|