Assembler: please kick me in the right direction


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default

    I'm going with basic for the multiplication. Only problem is that table 4.1 in this document is confusing:
    http://xess.com/manuals/asm51.pdf

    The entry for MUL is:

    B x A --> B,A

    Ok, so what does that mean? The result is placed in both A and B? In addition, the result is accumulated in the first variable. I expected something similar, either in the first, or in the second, but not both. Obviously I'm misunderstanding something here.

    I tried finding Note 7, but I can't see it anywhere.

    Robert
    Attached Images Attached Images  
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  2. #2
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Intel 8051

    (The result is sixteen-bit)

    Multiplies the unsigned value of the Accumulator by the unsigned value of
    the "B" register. The least significant byte of the result is placed in the
    Accumulator and the most-significant-byte is placed in the "B" register.


    ---------------------------------------------


    MCS 51 Microcontroller Family User's manual. (15 MB file).
    (Original data-book scanned).
    See PDF page 90
    ftp://download.intel.com/design/MCS5...S/27238302.pdf

    * * *

    8051 Instruction Set (300K file).
    See PDF page 50
    http://batronix.com/pdf/befehle.pdf

    * * *

    80C51 family programmer’s guide and instruction set. (270K file)
    See PDF page 43
    http://www.logiccell.com/~jean/8051/3082.pdf

    * * *
    Last edited by Luciano; - 26th December 2005 at 10:18.

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default

    Thanks for all the replies.

    I still have to control individual characters, contrast and the touch screen, but I got it to work. I printed xF0 across the entire LCD, to make it easy to see output. I have the LCD on inverse in this example, the top of the line should be high, not the bottom.

    The Hantronix code is incomplete for an Optrex LCD, you have to scour through the Optrex code and add missing control codes. Once I get the characters to come out properly, I'll see about putting out a bitmap.

    One idea I'm toying with is rotating the LCD and printing in portrait instead of landscape mode. There are applications where I want a vertical LCD instead of horizontal (like a list of single-word commands).

    I'll post the code once I've sufficiently changed it and made it my own. I don't want to be bothered with Hantronix and copyright laws.

    Robert
    Attached Images Attached Images  
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default

    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

Similar Threads

  1. decoding quadrature encoders
    By ice in forum mel PIC BASIC Pro
    Replies: 93
    Last Post: - 28th February 2017, 09:02
  2. PIC assembler forum?
    By Lajko in forum Off Topic
    Replies: 1
    Last Post: - 29th September 2008, 05:34
  3. Assembler problem
    By om3bc in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 25th March 2008, 19:12
  4. Am I reading this assembler correctly?
    By crhomberg in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 13th November 2007, 12:20
  5. Which assembler are you using?
    By picnaut in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 1st November 2005, 20:34

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts