Blame | Last modification | View Log | Download
# file opened: dup_index_var.asm1 0000 MACRO filler x1, x2, y1, y22 0000 ~ DUP (y2 - y1), .y3 0000 ~ DUP (x2 - x1), .x4 0000 ~ DB x1 + .x, y1 + .y5 0000 ~ EDUP6 0000 ~ EDUP7 0000 ~ IF .x ; index variable does exist after DUP with last used index (not +1 beyond it!)8 0000 ~ DD 0xA0DED1BA ; but this is not documented and rather shouldn't be used at all9 0000 ~ ENDIF10 0000 ENDM11 000012 0000 filler 3, 5, 10, 1212 0000 > DUP (12 - 10), .y12 0000 > DUP (5 - 3), .x12 0000 03 0A > DB 3 + .x, 10 + .y12 0002 04 0A > DB 3 + .x, 10 + .y12 0004 > EDUP12 0004 > DUP (5 - 3), .x12 0004 03 0B > DB 3 + .x, 10 + .y12 0006 04 0B > DB 3 + .x, 10 + .y12 0008 > EDUP12 0008 > EDUP12 0008 > IF .x ; index variable does exist after DUP with last used index (not +1 beyond it!)12 0008 BA D1 DE A0 > DD 0xA0DED1BA ; but this is not documented and rather shouldn't be used at all12 000C > ENDIF13 000C filler 100, 101, 200, 20113 000C > DUP (201 - 200), .y13 000C > DUP (101 - 100), .x13 000C 64 C8 > DB 100 + .x, 200 + .y13 000E > EDUP13 000E > EDUP13 000E > IF .x ; index variable does exist after DUP with last used index (not +1 beyond it!)13 000E ~ > DD 0xA0DED1BA ; but this is not documented and rather shouldn't be used at all13 000E > ENDIF14 000E15 000E DUP 4 , idx ; eol comment test16 000E 12 00 > DB 0x12, idx16 0010 12 01 > DB 0x12, idx16 0012 12 02 > DB 0x12, idx16 0014 12 03 > DB 0x12, idx17 0016 EDUP18 001619 0016 main:20 0016 DUP 2 , .idx ; eol comment test21 0016 23 00 > DB 0x23, .idx21 0018 23 01 > DB 0x23, .idx22 001A EDUP23 001Adup_index_var.asm(24): error: [DUP/REPT] invalid index variable name: @idx224 001A DUP 1 , @idx2 ; only local label prefix "." is supported for index variable namedup_index_var.asm(25): error: Label not found: idx225 001A 34 00 > DB 0x34, @idx226 001C EDUP27 001Cdup_index_var.asm(28): error: [DUP/REPT] invalid index variable name: !idx228 001C DUP 1 , !idx2 ; only local label prefix "." is supported for index variable namedup_index_var.asm(29): error: Label not found: idx229 001C 45 00 > DB 0x45, idx230 001E EDUP31 001Edup_index_var.asm(32): error: [DUP] unexpected chars: .idx32 001E DUP 1 .idx ; invalid syntax, missing comma33 001E EDUP34 001E35 001E DUP 1 ; w/o indexVar name, eol comment test36 001E 03 01 > DB idx, .idx37 0020 EDUP38 0020# file closed: dup_index_var.asmValue Label------ - -----------------------------------------------------------0x0001 0>x0x0001 0>y0x0000 1>x0x0000 1>y0x0003 idx0x0016 X main0x0001 main.idx