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 / 4135
4134  |  4136
Subject: 
Re: assembler
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Fri, 10 Jul 1998 09:57:52 GMT
Original-From: 
Bernd Klein <Bernd.Klein@{nospam}pdv-online.de>
Viewed: 
1200 times
  
Hi Richard,

Sorry for my bad english (normaly i speek german).

The 68hc11 has differnt kinds of addressing-modes.
1)    LDAA    #65                       :    immediate adress,      The
value is stored in accumulator
2)    LDAA    result                     :    direct Adress
The value from adress RESULT is stored in accumulator (8Bit Adress)
3)    LDAA    PORTA                :    extended Adress        The value
from adress RESULT is stored in accumulator (16Bit Adress)
4)    LDAA    X                          :    Index X- adressing    The
value from adress stored in X is stored in accumulator
5)    LDAA    3,Y                       :    Index Y-adressing     Like
(3), but there is an 3-Byte offset (adressoffset !!!)


to 1)    The value is stored "immediate" into the accumulator
to 2)    only 8Bit Adressingmode (256 Bytes)
to 3)    It is possible to adress 64K (16Bit - complete RAM-Memory)
to 4)    Adressingmode for your X and Y Register. It is possible to use
an offset Byte (shown at top 5)


but what's the difference between:
   ldaa    #$1000
and
   ldaa    $1000

Like my explanation above.
LDAA    #$1000            The value $1000 is stored immediate into
accumulator
LDAA    $1000               The value from adress $1000 is stored direct
into accumulator !!!!

I hope that´s all, good luck for programming your 68HC11

Bye Bernd Klein


Richard meester schrieb:

Hello,

can anyone tel me the function of the # in the AS11 assembler,

i'm new at assembler programming and get sometimes confused about the
usage of the #

# means a number,

but what's the difference between:
    ldaa    #$1000
and
    ldaa    $1000

Thanks,




--
MIME ATTACHMENTS DISCARDED:

1.  Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit
    Content-Length: 3118



Message has 1 Reply:
  Re: assembler
 
Hi all, Would be great if messages were sent in plain ASCII... Andre Ramos (26 years ago, 10-Jul-98, to lugnet.robotics.handyboard)

Message is in Reply To:
  assembler
 
Hello, can anyone tel me the function of the # in the AS11 assembler, i'm new at assembler programming and get sometimes confused about the usage of the # # means a number, but what's the difference between: ldaa #$1000 and ldaa $1000 Thanks, (26 years ago, 10-Jul-98, to lugnet.robotics.handyboard)

3 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