DIY PROM Do It Yourself PROM chip burning help. No PROM begging. No PROMs for sale. No commercial exchange. Not a referral service.

Source code for dummies?

Thread Tools
 
Search this Thread
 
Old Sep 19, 2003 | 05:10 PM
  #1  
novakm's Avatar
Thread Starter
Junior Member
 
Joined: Mar 2003
Posts: 73
Likes: 0
Source code for dummies?

Anyone have any good links for basic starter info on how to program ? I only found a couple of links in the stickies, and they did not work.

I have the motorola reference manual, but I need something a little shallower than that to start.

I'm talking real basic here. Like what does FCB or FDB mean in the HAC? They aren't operations. Why does the HAC say location LC482E when referring to location 482E in the BIN?


Thanks
MIke
Reply
Old Sep 19, 2003 | 06:06 PM
  #2  
RBob's Avatar
Moderator
iTrader: (1)
 
Joined: Mar 2002
Posts: 18,432
Likes: 234
From: Chasing Electrons
Car: check
Engine: check
Transmission: check
Re: Source code for dummies?

Originally posted by novakm
Anyone have any good links for basic starter info on how to program ? I only found a couple of links in the stickies, and they did not work.

I have the motorola reference manual, but I need something a little shallower than that to start.

I'm talking real basic here. Like what does FCB or FDB mean in the HAC? They aren't operations. Why does the HAC say location LC482E when referring to location 482E in the BIN?


Thanks
MIke
The FCB/FDB are assembler directives. Search for the ASM11 assembler on the net. It should have a .doc file (text) that describes assembler directives.

The 'patch method demo' has a section where I describe a section of code. This is worth looking at. Should be in the sticky's.

As for addressing (I just covered this in another post today) there is the EPROM address then the address when the EPROM is placed into the ECM.

In the case of the '730 the EPROM is block decoded to begin at $8000. So $C82E - $8000 = $482E. So the physical address is required to be used else the code will jump/fetch to/from never-never land.

RBob.
Reply
Old Sep 20, 2003 | 12:29 AM
  #3  
JP84Z430HP's Avatar
Supreme Member
25 Year Member
 
Joined: Feb 2000
Posts: 1,416
Likes: 0
From: Johnstown, Ohio
Car: 84 Z28
Engine: 355 (fastburn heads, LT4 HOT cam)
Transmission: 700R4
Axle/Gears: 9-bolt, 3.27
Here's the link for the patch method demo:
Patch Method Demo

Since it would be going out to never, never land, could you put something out in never, never land, or are you limited to what the ECM was "designed" to see? Can you change the limits of what it can see? I don't have any specific ideas that would need this yet, but you never know what one may come up with in the future!

Man, this source code stuff is tough!
Reply
Old Sep 20, 2003 | 07:16 AM
  #4  
RBob's Avatar
Moderator
iTrader: (1)
 
Joined: Mar 2002
Posts: 18,432
Likes: 234
From: Chasing Electrons
Car: check
Engine: check
Transmission: check
Originally posted by JP84Z430HP
Since it would be going out to never, never land, could you put something out in never, never land, or are you limited to what the ECM was "designed" to see? Can you change the limits of what it can see? I don't have any specific ideas that would need this yet, but you never know what one may come up with in the future!

Man, this source code stuff is tough!
Sure can. GM does just that with their headsup unit. It is in address block $5000 with some RAM in the $400 area.

Some ECMs have room for more RAM on the PCB that decodes to another block ($1000 block).

With a ROMLess '7747 the ADC address gets moved from $C000/$C002 to $A000/$A002.

RBob.
Reply
Old Sep 20, 2003 | 08:32 AM
  #5  
novakm's Avatar
Thread Starter
Junior Member
 
Joined: Mar 2003
Posts: 73
Likes: 0
Thanks guys

I'm going to look at the patch method post again. First time I went through it, it looked like chinese. Maybe it will start to make some sense now.


The .doc file with AS11 mentions FCB and FDB, but only in passing saying they are supported pseudo ops. Does not say what they are telling the assembler to do.

I get the addressing thing now.

Is there anywhere I can get an assemble ready source file for the '730 ecm? I dissasembled my AUJP chip, and it looked sort of like the ANHT HAC, but without the comments. Tried to reassemble it and got about 10,000 errors.

I'm slow, but pretty sure than once I get the basics I can do this.

Mike
Reply
Old Sep 20, 2003 | 10:23 AM
  #6  
RBob's Avatar
Moderator
iTrader: (1)
 
Joined: Mar 2002
Posts: 18,432
Likes: 234
From: Chasing Electrons
Car: check
Engine: check
Transmission: check
Originally posted by novakm
Thanks guys

Is there anywhere I can get an assemble ready source file for the '730 ecm? I dissasembled my AUJP chip, and it looked sort of like the ANHT HAC, but without the comments. Tried to reassemble it and got about 10,000 errors.

Mike
May want to start with the ANHT hac. Cut from the pdf and paste into notepad (NT has no limit on notepad file sizes, else use another flat text editor).

Once all there then start to assemble it. You will get errors, just take them one at a time and fix. Then compare the binary you get to AUJP. Change your ANHT source to same. Many cal values will need to be changed. Some code locations may need to also.

RBob.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
1Aauto
Sponsored Vendors
0
Sep 23, 2015 12:56 PM
1Aauto
Sponsored Vendors
0
Sep 23, 2015 12:50 PM




All times are GMT -5. The time now is 06:20 PM.