Rev 539 | Blame | Compare with Previous | Last modification | View Log | Download
# file opened: dot_repeat.asm1 0000 ; dot repeater is partially tested in docs_examples, here are more complex cases and errors2 0000 71 > ld (hl),c ; 16x 0x712 0001 71 > ld (hl),c2 0002 71 > ld (hl),c2 0003 71 > ld (hl),c2 0004 71 > ld (hl),c2 0005 71 > ld (hl),c2 0006 71 > ld (hl),c2 0007 71 > ld (hl),c2 0008 71 > ld (hl),c2 0009 71 > ld (hl),c2 000A 71 > ld (hl),c2 000B 71 > ld (hl),c2 000C 71 > ld (hl),c2 000D 71 > ld (hl),c2 000E 71 > ld (hl),c2 000F 71 > ld (hl),c3 0010 x:4 0010 C8 > ret z ; 16x 0xC84 0011 C8 > ret z4 0012 C8 > ret z4 0013 C8 > ret z4 0014 C8 > ret z4 0015 C8 > ret z4 0016 C8 > ret z4 0017 C8 > ret z4 0018 C8 > ret z4 0019 C8 > ret z4 001A C8 > ret z4 001B C8 > ret z4 001C C8 > ret z4 001D C8 > ret z4 001E C8 > ret z4 001F C8 > ret z5 0020 72 > ld (hl),d ; 16x 0x725 0021 72 > ld (hl),d5 0022 72 > ld (hl),d5 0023 72 > ld (hl),d5 0024 72 > ld (hl),d5 0025 72 > ld (hl),d5 0026 72 > ld (hl),d5 0027 72 > ld (hl),d5 0028 72 > ld (hl),d5 0029 72 > ld (hl),d5 002A 72 > ld (hl),d5 002B 72 > ld (hl),d5 002C 72 > ld (hl),d5 002D 72 > ld (hl),d5 002E 72 > ld (hl),d5 002F 72 > ld (hl),d6 00307 0030 ;; syntax errorsdot_repeat.asm(8): error: Dot-repeater must be followed by number or parentheses: .2.3 nop8 0030 .2.3 nop ; there must be space after repeat-counterdot_repeat.asm(9): error: Unrecognized instruction: . 16 nop9 0030 . 16 nop ; but no space after dotdot_repeat.asm(10): error: Unrecognized instruction: . (16) nop10 0030 . (16) nopdot_repeat.asm(11): error: Unrecognized instruction: .-1 nop11 0030 .-1 nopdot_repeat.asm(12): error: Label not found: zzdot_repeat.asm(12): error: .N must be positive integer: 012 0030 .(zz) nop ; undefined labeldot_repeat.asm(13): error: Dot-repeater must be followed by number or parentheses: .16+2 nop13 0030 .16+2 nop ; expressions must be in parenthesesdot_repeat.asm(14): error: Unrecognized instruction: +2 nop14 0030 > +2 nop ; expressions must be in parentheses (this one is ugly :/ )15 003016 0030 ;; value errorsdot_repeat.asm(17): error: .N must be positive integer: 017 0030 .0 nop ; counter must be positive valuedot_repeat.asm(18): error: .N must be positive integer: -1618 0030 .(x-32) nop ; error should show calculated repeat-counter value19 003020 0030 ;; whole expression must be enclosed in parentheses (did work as "x7" up to v1.17.0)dot_repeat.asm(21): error: .N must be positive integer: -121 0030 .(-1) +8 nop ; error -1 count22 003023 0030 E6 01 > and 1 ; counter example why the above is NOT harmless (revealed in v1.17.0)23 0032 E6 01 > and 124 0034 ; this produces 2x "and 1" (in v1.17.0 it does instead add `and 1` to expression)25 0034dot_repeat.asm(26): error: Dot-repeater must be followed by number or parentheses: .(5-3 and 226 0034 .(5-3 and 2 ; parentheses are not closeddot_repeat.asm(27): error: Unrecognized instruction: ) and 327 0034 > ) and 3 ; one too many closing parenthesesdot_repeat.asm(27): error: Unrecognized instruction: ) and 327 0034 > ) and 328 0034# file closed: dot_repeat.asmValue Label------ - -----------------------------------------------------------0x0010 x