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!
Bookmarks