Convert To Assembly Language

Discussion in 'Programmer's Corner' started by josephting, Aug 20, 2012.

  1. josephting

    Thread Starter New Member

    Aug 19, 2012
    3
    0
    Can anyone help me to convert the following programming code to assembly language ?

    Code ( (Unknown Language)):
    1.  
    2. TRISA = %00000000
    3. TRISB = %00000000
    4. TRISC = %00000000
    5.     column        var    byte
    6.     dchange        var    byte
    7.     scan         var     byte
    8.     scroll        var    byte
    9.     ldata         VAR byte[35]
    10. START:
    11.     CLEAR
    12.     'ldata [0 - 7 ] = %00000000 All Blank so that the first letter (D) scrolls onto the display
    13.     ldata [8] = %01111111    'start of 'D'
    14.     ldata [9] = %01000001
    15.     ldata [10] = %01000001
    16.     ldata [11] = %01000001
    17.     ldata [12] = %00111110
    18.     ldata [13] = %00000000
    19.     ldata [14] = %01100001    'start of 'J'
    20.     ldata [15] = %01000001
    21.     ldata [16] = %01111111
    22.     ldata [17] = %00000001
    23.     ldata [18] = %00000001
    24.     ldata [19] = %00000000
    25.     ldata [20] = %01111111    'start of 'W'
    26.     ldata [21] = %01000000
    27.     ldata [22] = %01111000
    28.     ldata [23] = %01000000
    29.     ldata [24] = %01111111
    30.     ldata [25] = %00000000
    31.     ldata [26] = %01111110    'start of 'smiley face symbol'
    32.     ldata [27] = %10000001
    33.     ldata [28] = %10010101
    34.     ldata [29] = %10100001
    35.     ldata [30] = %10100001
    36.     ldata [31] = %10010101
    37.     ldata [32] = %10000001
    38.     ldata [33] = %01111110
    39.     ldata [34] = %00000000    'Last line of data is blank to clear display as it scrolls
    40. LOOP:
    41.     FOR scroll = 0 TO 34        
    42.         FOR scan = 0 TO 50    '<< This will adjust scrolling speed
    43.             PORTC = 1
    44.             FOR column = 0 TO 7
    45.                 PORTB = ldata [column]
    46.                 PAUSE 1
    47.                 PORTC = PORTC * 2
    48.             NEXT
    49.         NEXT
    50.         FOR dchange = 0 TO 33
    51.             ldata [dchange] = ldata [dchange+1]    ' *** SHIFTS DATA IN ldata ARRAY DOWN.***
    52.         NEXT
    53.     NEXT
    54.     GOTO START
    55. END
    56.  
    57.  
     
    Last edited by a moderator: Aug 20, 2012
  2. kubeek

    AAC Fanatic!

    Sep 20, 2005
    4,670
    804
    What flavor of assembly do you expect?
    There is assembly for x86 with many different syntaxes, then there is assembly for atmel, pic, arm, 8051, each with likely more than one compiler each with different syntaxes...
    What you are asking is like showing a bunch of pictures and asking us to convert them to speech.
     
  3. mkbutan

    Senior Member

    Sep 30, 2008
    270
    16

    Dear Mr. KUBEER
    even i would like to know the procedure for the same
    i think he has made two threads for the same work (I may be wrong)...!!
    while searching the thread i found the link below

    http://forum.allaboutcircuits.com/showthread.php?t=73464

    PIC 18F4520 Interfacing with LED Dot Matrix for Running Message Display
    Hi,

    I am currently doing a project. I am using PIC 18F4520 to design and develop an 8x4 LED display panel with a finger-sensitive IR sensor. The requirement is to make the alphabet as running message in the LED display. For the example, alphabet "A" is moved from right to left constantly in the LED. There are 3 speed required, when approaching closer to the IR sensor, slow, medium and fast movement of the running message display.

    I am currently facing the problem of assembly code writing. I don't have the idea how to make the running message keep moving. Help please.
     
Loading...