To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 8235
8234  |  8236
Subject: 
Re: Basic assembler and downloader question
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Tue, 9 Jan 2001 14:16:05 GMT
Viewed: 
699 times
  
OK, I didn't see the following before.

The HB has its reset vector at $BFFE.  So the second ORG must be
there, not at $FFFE.

Please see

  http://handyboard.com/faq/display.php?key=memmap

for more info.

Fred

In your message you said:
I tried using dl.exe and the download appeared to work.  However, the LED
still did not turn on.  Is something wrong with my code?  Perhaps the RAM is
not accessible at this point as the chip is in bootstrap mode?

Again here is the listing (with the added loop thanks to Fred):

ORG $8000
LDAA #$40
STAA $1000
LOOP BRA LOOP
ORG $FFFE
FDB $8000

Seems simple enough to me.  I would think that resetting the board would
then light the LED.  Again I can easily go over to IC and type:

poke(0x1000, 0x40);

and the light will come on as expected.  I will greatly appreciate any
further feedback to get me on the right track.

Thanks,

Brian


In lugnet.robotics.handyboard, Fred G. Martin writes:
Brian

Try using dl.exe rather than dlm.exe

Also, put a line

LOOP  BRA LOOP

after you store the value in the Port A.  otherwise the 6811 will
happily execute whatever's next in memory.

Fred

In your message you said:
Hello All,

I recently completed assembly of my Handyboard and now I'm excited to be
moving into the coding realm (which is more my area).  I was able to get
Interactive C to communicate with the board.

However, given my nature of wanting to understand things more fully before
enjoying myself, I decided to write some simple assembly code to mimic the
part of the IR test done during the assembly of the handyboard ( poke(1000 • ,
0x40) or something like that) that essentially turned on the IR LED.

I coded up this simple .asm file and compiled it using the Motorola
assembler (as11.exe)

ORG $8000
LDAA #$40h
STAA $1000
ORG $FFFE
FDB $8000

I then ran dlm (in DOS mode as hbdl has not worked at all for me) using th • is
command line:

dlm irtest.s19 -256

Everything seems to download fine but I get some error messages at the end
of the dlm run such as the ones that follow:

Board memory error:  wanted 86, got 3e at address 8000
Board memory error:  wanted 40, got 86 at address 8001
etc...(3 more similar errors)

The 86 and 40 are the opcodes for what should be at those addresses and it
would seem that dlm is checking to make sure they are there but they are n • ot
.

Obviously the IR LED never comes on like I want it to.  Can someone please
tell me if my error is in my irtest.asm file listing I gave or in my usage
of dlm.

Thanks in advance,

Brian



Message has 1 Reply:
  Re: Basic assembler and downloader question
 
That did the trick. Thanks for helping me out with something so basic. I guess that I am next going to read up a little further on how the HandyBoard is using the special mode variations of the Motorola chip while still being able to access the (...) (23 years ago, 10-Jan-01, to lugnet.robotics.handyboard)

Message is in Reply To:
  Re: Basic assembler and downloader question
 
I tried using dl.exe and the download appeared to work. However, the LED still did not turn on. Is something wrong with my code? Perhaps the RAM is not accessible at this point as the chip is in bootstrap mode? Again here is the listing (with the (...) (23 years ago, 9-Jan-01, to lugnet.robotics.handyboard)

6 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR