Convert To Assembly Language

Thread Starter

josephting

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

Rich (BB code):
TRISA = %00000000
TRISB = %00000000
TRISC = %00000000
    column        var    byte
    dchange        var    byte
    scan         var     byte
    scroll        var    byte
    ldata         VAR byte[35]
START:
    CLEAR
    'ldata [0 - 7 ] = %00000000 All Blank so that the first letter (D) scrolls onto the display
    ldata [8] = %01111111    'start of 'D'
    ldata [9] = %01000001 
    ldata [10] = %01000001
    ldata [11] = %01000001
    ldata [12] = %00111110
    ldata [13] = %00000000 
    ldata [14] = %01100001    'start of 'J'
    ldata [15] = %01000001
    ldata [16] = %01111111
    ldata [17] = %00000001 
    ldata [18] = %00000001
    ldata [19] = %00000000
    ldata [20] = %01111111    'start of 'W'
    ldata [21] = %01000000
    ldata [22] = %01111000 
    ldata [23] = %01000000
    ldata [24] = %01111111
    ldata [25] = %00000000
    ldata [26] = %01111110    'start of 'smiley face symbol'
    ldata [27] = %10000001
    ldata [28] = %10010101
    ldata [29] = %10100001 
    ldata [30] = %10100001
    ldata [31] = %10010101
    ldata [32] = %10000001
    ldata [33] = %01111110
    ldata [34] = %00000000    'Last line of data is blank to clear display as it scrolls
LOOP:
    FOR scroll = 0 TO 34        
        FOR scan = 0 TO 50    '<< This will adjust scrolling speed
            PORTC = 1
            FOR column = 0 TO 7
                PORTB = ldata [column]
                PAUSE 1
                PORTC = PORTC * 2
            NEXT
        NEXT 
        FOR dchange = 0 TO 33
            ldata [dchange] = ldata [dchange+1]    ' *** SHIFTS DATA IN ldata ARRAY DOWN.***
        NEXT 
    NEXT
    GOTO START
END
 
Last edited by a moderator:

kubeek

Joined Sep 20, 2005
5,795
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.
 

mkbutan

Joined Sep 30, 2008
299
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.

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.
 
Top