Commit 45feccf
committed
Bugfix: correctly compute labels for JR
Relative jumps (JR, DJNZ) were computer wrongly when being
using in a line with several instructions. Fixed.
The syntax is now extended, so a LABEL does not need to use colon, and
can also be declared in between instructions. So:
LOOP
...
is valid, but also:
ld a, 0 : LOOP : nop : jp LOOP1 parent a11b196 commit 45feccf
6 files changed
Lines changed: 30 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
255 | 255 | | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | 256 | | |
267 | 257 | | |
268 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
605 | | - | |
606 | 604 | | |
607 | 605 | | |
608 | 606 | | |
609 | 607 | | |
610 | 608 | | |
611 | | - | |
612 | | - | |
613 | 609 | | |
614 | 610 | | |
615 | 611 | | |
| |||
621 | 617 | | |
622 | 618 | | |
623 | 619 | | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | 620 | | |
633 | 621 | | |
| 622 | + | |
634 | 623 | | |
635 | | - | |
636 | 624 | | |
637 | 625 | | |
638 | 626 | | |
639 | 627 | | |
640 | 628 | | |
641 | | - | |
| 629 | + | |
642 | 630 | | |
643 | 631 | | |
644 | 632 | | |
645 | 633 | | |
646 | 634 | | |
647 | | - | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
648 | 639 | | |
649 | 640 | | |
650 | 641 | | |
651 | 642 | | |
652 | 643 | | |
653 | | - | |
654 | 644 | | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Binary file not shown.
0 commit comments