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

realistic goals...

Thread Tools
 
Search this Thread
 
Old Feb 27, 2005 | 11:37 PM
  #1  
11sORbust's Avatar
Thread Starter
Supreme Member
 
Joined: Nov 2003
Posts: 1,399
Likes: 0
From: STL area
realistic goals...

HOw long should it take the average person to learn ASM? We are talking just enough to add or modfy a table. I need to get an idea on how many hours a day to spend on it.....
Reply
Old Feb 28, 2005 | 08:57 AM
  #2  
Grumpy's Avatar
Supreme Member
 
Joined: Jun 2000
Posts: 7,554
Likes: 1
From: In reality
Car: An Ol Buick
Engine: Vsick
Transmission: Janis Tranny Yank Converter
Re: realistic goals...

Originally posted by 11sORbust
HOw long should it take the average person to learn ASM? We are talking just enough to add or modfy a table. I need to get an idea on how many hours a day to spend on it.....
It's really impossible to say. People's aptitudes are all over the board for stuff like that. I have years in trying to make sense of it, and still haven't much of a clue.
Reply
Old Feb 28, 2005 | 09:25 AM
  #3  
11sORbust's Avatar
Thread Starter
Supreme Member
 
Joined: Nov 2003
Posts: 1,399
Likes: 0
From: STL area
Makes me wonder how much time RBob has in.....
Reply
Old Feb 28, 2005 | 09:41 AM
  #4  
RBob's Avatar
Moderator
iTrader: (1)
 
Joined: Mar 2002
Posts: 18,432
Likes: 233
From: Chasing Electrons
Car: check
Engine: check
Transmission: check
Originally posted by 11sORbust
Makes me wonder how much time RBob has in.....
Just a week or two

RBob.
Reply
Old Feb 28, 2005 | 10:03 AM
  #5  
JP86SS's Avatar
Supreme Member
20 Year Member
iTrader: (1)
 
Joined: Apr 2004
Posts: 3,180
Likes: 3
From: Browns Town
Car: 86 Monte SS (730,$8D,G3,AP,4K,S_V4)
Engine: 406 Hyd Roller 236/242
Transmission: 700R4 HomeBrew, 2.4K stall
Axle/Gears: 3:73 Posi, 7.5 Soon to break
long weeks

I think to get a basic understanding does not taketoo long.
The problems come from the abstract uses of the code for faster operation. Things that drive you nuts are the usage of the "status" bits to check if values are higher/lower/equal then indexed addressing makes you say "what was that number again"
Taking a line by line "execution" approach in one of the hacs helps to see what each of the opcodes does and gives you an indication of how long this may take.
Looking at how the code is executing and understanding what is going on is alot easier than reformatting to fit something else in.
That's where the mastery come in. (that will take at least the two weeks Rbob has put in )
My two weeks have taken about 6 months on and off and I have a grasp but by no means a mastery of it yet.
JP
Reply
Old Feb 28, 2005 | 12:09 PM
  #6  
RBob's Avatar
Moderator
iTrader: (1)
 
Joined: Mar 2002
Posts: 18,432
Likes: 233
From: Chasing Electrons
Car: check
Engine: check
Transmission: check
I think the key to learning and understanding assembly code is to first know how a uProcessor works. Understanding how the registors are used, how memory is used, what addressing is, along with the accumulator goes a long way toward writing code.

Section 6 (Central Processor Unit) of the pink book describes a bunch of this. This would be the best place for a beginner to start out. Then read some simple GM code and try to understand it. There isn't a need to understand the code of a 3D lookup. It is enough to understand the basic operation, it isn't simple code.

Start where the SA lookups are first done, and move down through the code. For the most part the SA stuff is straight forward. May even want to start with a C3 mask, such as $61.

When it comes time to modifying code, try some easy stuff first. Once that is working move on to more items. Take a building approach to a modification. Make it simple at first, once that works, move the 'simple' up a notch and add to it.

RBob.

Last edited by RBob; Feb 28, 2005 at 12:11 PM.
Reply
Old Feb 28, 2005 | 12:26 PM
  #7  
AlexJH's Avatar
TGO Supporter
 
Joined: Jul 2000
Posts: 812
Likes: 1
Engine: 5.7L V8
Transmission: 700R4
If you're interested in a good book to start, I highly recommend 'Bebop to the Boolean Boogie'.

Should be the second link:

http://www.amazon.com/exec/obidos/se...222422-8015159

Lame name I know, but this guy covers tons of material in an easy to read way.
Reply
Old Feb 28, 2005 | 01:55 PM
  #8  
11sORbust's Avatar
Thread Starter
Supreme Member
 
Joined: Nov 2003
Posts: 1,399
Likes: 0
From: STL area
....first know how a uProcessor works. Understanding how the registors are used, how memory is used, what addressing is, along with the accumulator goes a long way toward writing code.
Pink book.....sect 6....I'll read it. I think you are right, I need to step back and learn how everything works. I seen a book that decribed memory, how it's divided into sections and each section has an address range...or something like that(only read it for a second). Didn't buy the book because I was not sure the info could be directly applied to our ECM. Didn't want to gamble $56.

I'll buy Bebop to the Boolean Boogie within the next two weeks. Thanks!

-Tim
Reply
Old Feb 28, 2005 | 06:56 PM
  #9  
1981TTA's Avatar
Member
 
Joined: May 2004
Posts: 289
Likes: 0
From: SE Michigan
Car: 81 Turbo Trans Am
Engine: 301 T
Transmission: 200-4R
Another thing that might help (at least it does for me) is to start with something you want to "do" to the code so you can apply your "research". Your mention of adding a lookup table is an excellent place to start! As Rbob mentioned, you can start simple (i.e. copy an existing table) and make changes to see how things work from from there (i.e. change input variable, change table size, change breakpoints, etc.) If you start with the array/table routines, you should be exposed to a good portion of binary math and parameter scaling.

If you're interested in getting started "for free" here's what I'd do (if you haven't already):

1) Download the HC11 Pink book. You'll want this available for reference all the time!

2) Obtain a copy of some existing source code (i.e. $60) and a compiler. Without making any code changes, make sure you're proficient at getting the code to compile and produce a binary that exactly matches the "stock" code. Once you can do this, you should be in a good position to compile the "modified" code you'll be making later.

3) Obtain one of the free HC11 simulators. This will let you view/manipulate registers and memory as you step through portions of the code. Although you won't be able to run the entire binary from start to finish, you will be able to tell the simulator to start and step through the code at a particular area you're interested in manipulating (i.e. the start of one of the array/table lookup routines).

4) Identify a portion of the code that has an array lookup. I'd start with an array because it's a little simpler and is used as part of the larger "table" lookups. In order to help you understand the steps the algorithm performs, write down (or use your favorite programming language) a method of how you'd do an array lookup. This might help you get a feel for the big picture.
Simulate/step through the ECM logic with (3) above and your algorithm close at hand while trying various input values. (Here's where keeping the Pink Book around pays off big time!) If you're using $60, the PE AFR vs. RPM array would be a good candidate. Verify you get what is expected from the table for any RPM value you try. Look at how the code executes when you enter an input value that precisely falls on a breakpoint vs. when the value is between breakpoints. What happens when you enter 0? What happens when you enter 6375?

There are further variations on this theme, such as investigating array lookups that have different max/min input values, different breakpoints and different sizes. Ultimately, you can also tear into the "table" lookups, too.

I don't want to discourage you from picking up some books and doing further research. I just find I learn better if I can physically "see" results while doing this research! And, having a specific goal sometimes keeps me from jumping off on tangents. (Although, following those tangents at a later date is very often satisfying!)
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Nick McCardle
Firebirds for Sale
1
Sep 10, 2015 08:36 PM
z28_AJ
History / Originality
22
Aug 27, 2015 08:59 PM
manitoufs
DIY PROM
4
May 25, 2001 01:26 PM
Mike89GTA
Tech / General Engine
1
Dec 22, 2000 03:58 AM




All times are GMT -5. The time now is 04:14 PM.