DCD command - need some advice


Results 1 to 21 of 21

Threaded View

  1. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    So, i think i lost you pretty much more with the second asm code using the text substitution?

    Sorry sometimes i'm getting sick with those MOVE?CB, PAUSE?C, macro and whatever else... It's the Darrel's fault!

    Yup indeed the whole MOVE?CB ... block could be replace by using...
    Code:
    Patt[1]=Patt1
    Patt[2]=Patt2
    Patt[3]=Patt3
    Patt[4]=Patt4
    Patt[5]=Patt5
    Patt[6]=Patt6
    Patt[7]=Patt7
    Now compile those line and open the .asm file... you'll discover somewhere those lines...
    Code:
    ; C:\PBP_PROG\A.BAS        	00040	Patt[1]=Patt1
    	MOVE?CB	_Patt1, _Patt + 00001h
    
    ; C:\PBP_PROG\A.BAS        	00041	Patt[2]=Patt2
    	MOVE?CB	_Patt2, _Patt + 00002h
    
    ; C:\PBP_PROG\A.BAS        	00042	Patt[3]=Patt3
    	MOVE?CB	_Patt3, _Patt + 00003h
    
    ; C:\PBP_PROG\A.BAS        	00043	Patt[4]=Patt4
    	MOVE?CB	_Patt4, _Patt + 00004h
    
    ; C:\PBP_PROG\A.BAS        	00044	Patt[5]=Patt5
    	MOVE?CB	_Patt5, _Patt + 00005h
    
    ; C:\PBP_PROG\A.BAS        	00045	Patt[6]=Patt6
    	MOVE?CB	_Patt6, _Patt + 00006h
    
    ; C:\PBP_PROG\A.BAS        	00046	Patt[7]=Patt7
    	MOVE?CB	_Patt7, _Patt + 00007h
    Interesting eh?

    NOW, why i use the MOVE?CB first? Well didn't thought Patt[1]=Patt1 would worked... later i decide to try and... Woohhooo

    So this is why i edited my previous post. I'm still learning as well. I guess we never stop anyways!

    MOVE?CB: Is a PBP macro wich copy a Constant value to a Byte variable. Not much.

    Glad to hear it's working as expected
    Have fun!
    Last edited by mister_e; - 16th December 2006 at 18:57.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Need "PIC16F84A" Controler schematic Advice...
    By Kyo_89 in forum Schematics
    Replies: 1
    Last Post: - 27th May 2009, 23:03
  2. Design Advice
    By isaac in forum General
    Replies: 38
    Last Post: - 11th October 2008, 23:07
  3. Your OTP advice?
    By truvahorse in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 28th June 2008, 16:37
  4. NCD vs. DCD - Commentary
    By andrewroz in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th November 2007, 23:16
  5. Advice needed on 'neat' Project!
    By vacpress in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th February 2007, 06:21

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