Go to most recent revision | 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 nopdot_repeat.asm(14): error: Unexpected: +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 ;; this unintentionally works (too difficult to prevent and seems harmless)21 0030 00 > nop ; 7x nop21 0031 00 > nop21 0032 00 > nop21 0033 00 > nop21 0034 00 > nop21 0035 00 > nop21 0036 00 > nop22 0037# file closed: dot_repeat.asmValue Label------ - -----------------------------------------------------------0x0010 x