Hi,johnsa
QuoteError A2061: Line too long
macros: only use 54 ?
data: only define 112 ?
.data
NamesArr dq CStr("aliceblue"),CStr("antiquewhite"),CStr("aqua"), ;1
CStr("aquamarine"),CStr("azure"),CStr("beige"), ;2
CStr("bisque"),CStr("black"),CStr("blanchedalmond"), ;3
CStr("blue"),CStr("blueviolet"),CStr("brown"), ;4
CStr("burlywood"),CStr("cadetblue"),CStr("chartreuse"), ;5
CStr("chocolate"),CStr("coral"),CStr("cornflowerblue"), ;6
CStr("cornsilk"),CStr("crimson"),CStr("cyan"), ;7
CStr("darkblue"),CStr("darkcyan"),CStr("darkgoldenrod"), ;8
CStr("darkgray"),CStr("darkgreen"),CStr("darkgrey"), ;9
CStr("darkkhaki"),CStr("darkmagenta"),CStr("darkolivegreen"), ;10
CStr("darkorange"),CStr("darkorchid"),CStr("darkred"), ;11
CStr("darksalmon"),CStr("darkseagreen"),CStr("darkslateblue"), ;12
CStr("darkslategray"),CStr("darkslategrey"),CStr("darkturquoise"), ;13
CStr("darkviolet"),CStr("deeppink"),CStr("deepskyblue"), ;14
CStr("dimgray"),CStr("dimgrey"),CStr("dodgerblue"), ;15
CStr("firebrick"),CStr("floralwhite"),CStr("forestgreen"), ;16
CStr("fuchsia"),CStr("gainsboro"),CStr("ghostwhite"), ;17
CStr("gold"),CStr("goldenrod"),CStr("gray") ;18
;CStr("green"),CStr("greenyellow"),CStr("grey") ;19
ColorArr dd 0fff8f0h,0d7ebfah,0ffff00h,0d4ff7fh,0fffff0h,0dcf5f5h,0c4e4ffh,0000000h,
0cdebffh,0ff0000h,0e22b8ah,02a2aa5h,087b8deh,0a09e5fh,000ff7fh,01e69d2h,
0507fffh,0ed9564h,0dcf8ffh,03c14dch,0ffff00h,08b0000h,08b8b00h,00b86b8h,
0a9a9a9h,0006400h,0a9a9a9h,06bb7bdh,08b008bh,02f6b55h,0008cffh,0cc3299h,
000008bh,07a96e9h,08fbc8fh,08b3d48h,04f4f2fh,04f4f2fh,0d1ce00h,0d30094h,
09314ffh,0ffbf00h,0696969h,0696969h,0ff901eh,02222b2h,0f0faffh,0228b22h,
0ff00ffh,0dcdcdch,0fff8f8h,000d7ffh,020a5dah,0808080h,0008000h,02fffadh,
0808080h,0f0fff0h,0b469ffh,05c5ccdh,082004bh,0f0ffffh,08ce6f0h,0fae6e6h,
0f5f0ffh,000fc7ch,0cdfaffh,0e6d8adh,08080f0h,0ffffe0h,0d2fafah,0d3d3d3h,
090ee90h,0d3d3d3h,0c1b6ffh,07aa0ffh,0aab220h,0face87h,0998877h,0998877h,
0dec4b0h,0e0ffffh,000ff00h,032cd32h,0e6f0fah,0ff00ffh,0000080h,0cd0000h,
0d355bah,0db7093h,071b33ch,0ee687bh,09afa00h,0ccd148h,08515c7h,0701919h,
0fafff5h,0e1e4ffh,0b5e4ffh,0addeffh,0800000h,0e6f5fdh,0008080h,0238e6bh,
000a5ffh,00045ffh,0d670dah,0aae8eeh,098fb98h,0eeeeafh,09370dbh,0d5efffh;,
;0b9daffh;,03f85cdh;,0cbc0ffh,0dda0ddh;,0e6e0b0h,0800080h;,00000ffh,08f8fbch
Try without all those commas at the end, they are not needed.
Hi,jj2007
thanks you.
QuoteTry without all those commas at the end, they are not needed.
it's worked.
QuoteNameArrNum = (sizeof NamesArr) / 8
cannot work.
One line is limited 122 ",".
arrStart dd 123
dd 456
arrEnd dd 789
dwords=(arrEnd-arrStart)/DWORD+1
Quote from: jj2007 on September 09, 2022, 08:03:09 PM
arrStart dd 123
dd 456
arrEnd dd 789
dwords=(arrEnd-arrStart)/DWORD+1
Hi,jj2007
it's worked.
thank you very much!