Subject: Huge resource for learning asm
From: Rotary Engine
Date: 7/5/2006, 6:11 AM
To: AAme

http://www.njqrp.org/digitalhomebrewing/index.html


Buy the computer here for $30.
http://www.njqrp.org/hc908/index.html#TO%20ORDER

Very little profit if any in this computer so you are getting
a REAL bargain. Apparently this is a gift from the ham
Internet community to you.

These are a bunch of hams and they do excellent work and
documentation.

The blink software in this zip file is a super simple
program to get you started. All the set up code is
a reflection of the very powerful nature of the
68HC908AB32. Study the listing as you can rapidly learn
a lot of asm.

Here is a snippet of the listing in case the zip file does
not come across. If you have any questions about any of the
instructions don't hesitate to ask me.


Address --hex instr---Line#--Label--English Instr--Address or data----Comment
_______________________________________________________________________________
                      536  ;***************************************************

                      537  ; Main_Init - This is the point ($8040) where User
                                                          Code starts executing
                      538  ;             after coming from the Monitor
                      539  ;             after board gets a RESET.
                      540  ;***************************************************

                      541  Main_Init:
 803F [02] 9B         542         sei                             ;disable all
                                                                     interrupts
 8040 [03] 4501FF     543         ldhx     #$01FF                 ;initialize
 8043 [02] 94         544         txs                             ;  the stack
                                                                        pointer
                      545
                      546  ;***************************************************

                      547  ; PROGRAM MAINLINE
                                                                              *
                      548  ;***************************************************

                      549
                      550  mymain:
 8044 [04] C7FFFF     551          sta     copctl                 ;clear the
                                                                    COP counter
                      552
 8047 [04] 1D09       553  mm1:    bclr    6,portF                ;blink the
                                                                  heartbeat LED
 8049 [05] CD8054     554          jsr     Wait500ms
 804C [04] 1C09       555          bset    6,portF
 804E [05] CD8054     556          jsr     Wait500ms
 8051 [03] 20F4       557          bra     mm1
                      558


Paul Lamar ...No rotor no motor.

The Rotary Engine NewsLetter. Powered by Linux.
ACRE NL web site. http://www.rotaryeng.net
Copyright 1998-2006 All world wide rights reserved.