Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/17/08 04:26
Read: times


 
Msg Score: -2
 -2 Gimmee Code
#157523 - Convert Assembly routine to C using Keil.
Hi folks,

Anyone can convert below program written by assembly to C?



   ADspTab     Equ    05000h
   EndDspTab   Equ    16

   DspTabPointH       Data     12h
   DspTabPointL       Data     11h
   DspTabCount        Data     10h

LoopMain:

         Mov     DspTabPointH,#High(ADspTab)
         Mov     DspTabPointL,#Low(ADspTab)
         Mov     DspTabCount,#0
LoopDspTab:
         Mov     Dph,DspTabPointH
         Mov     DpL,DspTabPointL
         Movx    A,@Dptr
         Jz      LoopMain
         Inc     Dptr
         Mov     DspTabPointH,Dph
         Mov     DspTabPointL,Dpl
         Lcall   DspSelect
         Inc     DspTabCount
         Mov     A,DspTabCount
         Cjne    A,#EndDspTab,LoopDspTab
         Ajmp    LoopMain



Thanks and Best Regards,
Cuong,

List of 10 messages in thread
TopicAuthorDate
Convert Assembly routine to C using Keil.            01/01/70 00:00      
   no guarantee this will fit your purpose...            01/01/70 00:00      
      Assembly to C and then back again            01/01/70 00:00      
      Double loop            01/01/70 00:00      
         yes, you are right            01/01/70 00:00      
      Target processor name.            01/01/70 00:00      
         Microprocessor name.            01/01/70 00:00      
            initializing global variable to zero            01/01/70 00:00      
               Are you sure you want it outside of the loop?            01/01/70 00:00      
   What is the target processor name.??            01/01/70 00:00      

Back to Subject List