From c696d9610e2613b532bf18f013c1d724b8063ca6 Mon Sep 17 00:00:00 2001 From: jespergravgaard Date: Wed, 27 Mar 2019 07:47:31 +0100 Subject: [PATCH] Added parenthesis to negative immediates to AXS. --- src/main/fragment/vbuxx=vbuaa_plus_vbuc1.asm | 2 +- src/main/fragment/vbuxx=vbuxx_plus_vbuc1.asm | 2 +- src/main/fragment/vbuxx=vbuz1_plus_vbuc1.asm | 2 +- src/test/ref/bresenham.asm | 2 +- src/test/ref/bresenham.log | 6 +- src/test/ref/bresenhamarr.asm | 2 +- src/test/ref/bresenhamarr.log | 6 +- src/test/ref/c64dtv-gfxexplorer.asm | 2 +- src/test/ref/c64dtv-gfxexplorer.log | 6 +- src/test/ref/casting.asm | 2 +- src/test/ref/casting.log | 6 +- src/test/ref/clobber-a-problem.asm | 2 +- src/test/ref/clobber-a-problem.log | 6 +- src/test/ref/complex/tetris/test-sprites.asm | 20 ++--- src/test/ref/complex/tetris/test-sprites.log | 60 ++++++------- src/test/ref/complex/tetris/tetris.asm | 26 +++--- src/test/ref/complex/tetris/tetris.log | 84 +++++++++---------- .../ref/consolidate-array-index-problem.asm | 2 +- .../ref/consolidate-array-index-problem.log | 6 +- src/test/ref/const-param.log | 2 +- src/test/ref/examples/3d/3d.asm | 8 +- src/test/ref/examples/3d/3d.log | 26 +++--- .../multiplexer/simple-multiplexer.asm | 2 +- .../multiplexer/simple-multiplexer.log | 8 +- src/test/ref/examples/rotate/rotate.log | 2 +- .../ref/examples/scrolllogo/scrolllogo.log | 20 ++--- .../ref/examples/sinsprites/sinus-sprites.asm | 6 +- .../ref/examples/sinsprites/sinus-sprites.log | 18 ++-- src/test/ref/flipper-rex2.asm | 2 +- src/test/ref/flipper-rex2.log | 6 +- .../ref/fragments-assignment-binary-vbuxx.log | 34 ++++---- .../ref/fragments-assignment-binary-vbuz1.log | 6 +- src/test/ref/iterarray.log | 2 +- src/test/ref/liverange.log | 4 +- src/test/ref/overlap-allocation-2.asm | 2 +- src/test/ref/overlap-allocation-2.log | 6 +- src/test/ref/sinusgenscale8.asm | 2 +- src/test/ref/sinusgenscale8.log | 6 +- src/test/ref/test-comments-block.log | 2 +- src/test/ref/test-comments-single.log | 2 +- src/test/ref/test-comparisons.asm | 2 +- src/test/ref/test-comparisons.log | 6 +- 42 files changed, 209 insertions(+), 209 deletions(-) diff --git a/src/main/fragment/vbuxx=vbuaa_plus_vbuc1.asm b/src/main/fragment/vbuxx=vbuaa_plus_vbuc1.asm index c6062ed5b..929c21d2a 100644 --- a/src/main/fragment/vbuxx=vbuaa_plus_vbuc1.asm +++ b/src/main/fragment/vbuxx=vbuaa_plus_vbuc1.asm @@ -1,2 +1,2 @@ tax -axs #-{c1} \ No newline at end of file +axs #-[{c1}] \ No newline at end of file diff --git a/src/main/fragment/vbuxx=vbuxx_plus_vbuc1.asm b/src/main/fragment/vbuxx=vbuxx_plus_vbuc1.asm index 28968ebf8..f997f2101 100644 --- a/src/main/fragment/vbuxx=vbuxx_plus_vbuc1.asm +++ b/src/main/fragment/vbuxx=vbuxx_plus_vbuc1.asm @@ -1,2 +1,2 @@ txa -axs #-{c1} \ No newline at end of file +axs #-[{c1}] \ No newline at end of file diff --git a/src/main/fragment/vbuxx=vbuz1_plus_vbuc1.asm b/src/main/fragment/vbuxx=vbuz1_plus_vbuc1.asm index f43d0fc72..7bb35ab69 100644 --- a/src/main/fragment/vbuxx=vbuz1_plus_vbuc1.asm +++ b/src/main/fragment/vbuxx=vbuz1_plus_vbuc1.asm @@ -1,2 +1,2 @@ lax {z1} -axs #-{c1} \ No newline at end of file +axs #-[{c1}] \ No newline at end of file diff --git a/src/test/ref/bresenham.asm b/src/test/ref/bresenham.asm index 903bc0915..c3b533e72 100644 --- a/src/test/ref/bresenham.asm +++ b/src/test/ref/bresenham.asm @@ -32,7 +32,7 @@ main: { inc cursor+1 !: txa - axs #-yd + axs #-[yd] cpx #xd bcc b2 inc y diff --git a/src/test/ref/bresenham.log b/src/test/ref/bresenham.log index 494448808..282e4a572 100644 --- a/src/test/ref/bresenham.log +++ b/src/test/ref/bresenham.log @@ -404,7 +404,7 @@ main: { !: //SEG25 [9] (byte) main::e#1 ← (byte) main::e#3 + (const byte) main::yd#0 -- vbuz1=vbuz1_plus_vbuc1 lax e - axs #-yd + axs #-[yd] stx e //SEG26 [10] if((const byte) main::xd#0>(byte) main::e#1) goto main::@2 -- vbuc1_gt_vbuz1_then_la1 lda e @@ -557,7 +557,7 @@ main: { !: //SEG25 [9] (byte) main::e#1 ← (byte) main::e#3 + (const byte) main::yd#0 -- vbuxx=vbuxx_plus_vbuc1 txa - axs #-yd + axs #-[yd] //SEG26 [10] if((const byte) main::xd#0>(byte) main::e#1) goto main::@2 -- vbuc1_gt_vbuxx_then_la1 cpx #xd bcc b2_from_b1 @@ -740,7 +740,7 @@ main: { !: //SEG25 [9] (byte) main::e#1 ← (byte) main::e#3 + (const byte) main::yd#0 -- vbuxx=vbuxx_plus_vbuc1 txa - axs #-yd + axs #-[yd] //SEG26 [10] if((const byte) main::xd#0>(byte) main::e#1) goto main::@2 -- vbuc1_gt_vbuxx_then_la1 cpx #xd bcc b2 diff --git a/src/test/ref/bresenhamarr.asm b/src/test/ref/bresenhamarr.asm index 8e1fd7525..91047f4bf 100644 --- a/src/test/ref/bresenhamarr.asm +++ b/src/test/ref/bresenhamarr.asm @@ -37,7 +37,7 @@ main: { inc idx+1 !: txa - axs #-yd + axs #-[yd] cpx #xd bcc b2 beq b2 diff --git a/src/test/ref/bresenhamarr.log b/src/test/ref/bresenhamarr.log index 7cb0c23bc..fad481081 100644 --- a/src/test/ref/bresenhamarr.log +++ b/src/test/ref/bresenhamarr.log @@ -406,7 +406,7 @@ main: { !: //SEG25 [9] (byte) main::e#1 ← (byte) main::e#3 + (const byte) main::yd#0 -- vbuz1=vbuz1_plus_vbuc1 lax e - axs #-yd + axs #-[yd] stx e //SEG26 [10] if((const byte) main::xd#0>=(byte) main::e#1) goto main::@2 -- vbuc1_ge_vbuz1_then_la1 lda #xd @@ -555,7 +555,7 @@ main: { !: //SEG25 [9] (byte) main::e#1 ← (byte) main::e#3 + (const byte) main::yd#0 -- vbuxx=vbuxx_plus_vbuc1 txa - axs #-yd + axs #-[yd] //SEG26 [10] if((const byte) main::xd#0>=(byte) main::e#1) goto main::@2 -- vbuc1_ge_vbuxx_then_la1 cpx #xd bcc b2_from_b1 @@ -744,7 +744,7 @@ main: { !: //SEG25 [9] (byte) main::e#1 ← (byte) main::e#3 + (const byte) main::yd#0 -- vbuxx=vbuxx_plus_vbuc1 txa - axs #-yd + axs #-[yd] //SEG26 [10] if((const byte) main::xd#0>=(byte) main::e#1) goto main::@2 -- vbuc1_ge_vbuxx_then_la1 cpx #xd bcc b2 diff --git a/src/test/ref/c64dtv-gfxexplorer.asm b/src/test/ref/c64dtv-gfxexplorer.asm index ef1f896f4..d917a24d4 100644 --- a/src/test/ref/c64dtv-gfxexplorer.asm +++ b/src/test/ref/c64dtv-gfxexplorer.asm @@ -556,7 +556,7 @@ keyboard_event_scan: { cmp keyboard_scan_values,y bne b6 lax keycode - axs #-8 + axs #-[8] stx keycode b3: inc row diff --git a/src/test/ref/c64dtv-gfxexplorer.log b/src/test/ref/c64dtv-gfxexplorer.log index 49f46870b..350f494e0 100644 --- a/src/test/ref/c64dtv-gfxexplorer.log +++ b/src/test/ref/c64dtv-gfxexplorer.log @@ -14731,7 +14731,7 @@ keyboard_event_scan: { b13: //SEG283 [166] (byte) keyboard_event_scan::keycode#1 ← (byte) keyboard_event_scan::keycode#11 + (byte/signed byte/word/signed word/dword/signed dword) 8 -- vbuz1=vbuz1_plus_vbuc1 lax keycode - axs #-8 + axs #-[8] stx keycode //SEG284 [167] phi from keyboard_event_scan::@13 keyboard_event_scan::@19 to keyboard_event_scan::@3 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3] b3_from_b13: @@ -21806,7 +21806,7 @@ keyboard_event_scan: { b13: //SEG283 [166] (byte) keyboard_event_scan::keycode#1 ← (byte) keyboard_event_scan::keycode#11 + (byte/signed byte/word/signed word/dword/signed dword) 8 -- vbuz1=vbuz1_plus_vbuc1 lax keycode - axs #-8 + axs #-[8] stx keycode //SEG284 [167] phi from keyboard_event_scan::@13 keyboard_event_scan::@19 to keyboard_event_scan::@3 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3] b3_from_b13: @@ -29709,7 +29709,7 @@ keyboard_event_scan: { //SEG282 keyboard_event_scan::@13 //SEG283 [166] (byte) keyboard_event_scan::keycode#1 ← (byte) keyboard_event_scan::keycode#11 + (byte/signed byte/word/signed word/dword/signed dword) 8 -- vbuz1=vbuz1_plus_vbuc1 lax keycode - axs #-8 + axs #-[8] stx keycode //SEG284 [167] phi from keyboard_event_scan::@13 keyboard_event_scan::@19 to keyboard_event_scan::@3 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3] //SEG285 [167] phi (byte) keyboard_events_size#100 = (byte) keyboard_events_size#118 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3#0] -- register_copy diff --git a/src/test/ref/casting.asm b/src/test/ref/casting.asm index ddb937ccb..6306b5952 100644 --- a/src/test/ref/casting.asm +++ b/src/test/ref/casting.asm @@ -32,7 +32,7 @@ w: { b1: tya tax - axs #-$578-$546 + axs #-[$578-$546] lda #b sta SCREEN3,y txa diff --git a/src/test/ref/casting.log b/src/test/ref/casting.log index 636986a99..458e63ff0 100644 --- a/src/test/ref/casting.log +++ b/src/test/ref/casting.log @@ -440,7 +440,7 @@ w: { b1: //SEG34 [17] (byte) w::b2#0 ← (word/signed word/dword/signed dword) $578-(word/signed word/dword/signed dword) $546 + (byte) w::i#2 -- vbuz1=vbuc1_plus_vbuz2 lax i - axs #-$578-$546 + axs #-[$578-$546] stx b2 //SEG35 [18] *((const byte*) SCREEN3#0 + (byte) w::i#2) ← (const byte) w::b#0 -- pbuc1_derefidx_vbuz1=vbuc2 lda #b @@ -584,7 +584,7 @@ w: { //SEG34 [17] (byte) w::b2#0 ← (word/signed word/dword/signed dword) $578-(word/signed word/dword/signed dword) $546 + (byte) w::i#2 -- vbuxx=vbuc1_plus_vbuyy tya tax - axs #-$578-$546 + axs #-[$578-$546] //SEG35 [18] *((const byte*) SCREEN3#0 + (byte) w::i#2) ← (const byte) w::b#0 -- pbuc1_derefidx_vbuyy=vbuc2 lda #b sta SCREEN3,y @@ -756,7 +756,7 @@ w: { //SEG34 [17] (byte) w::b2#0 ← (word/signed word/dword/signed dword) $578-(word/signed word/dword/signed dword) $546 + (byte) w::i#2 -- vbuxx=vbuc1_plus_vbuyy tya tax - axs #-$578-$546 + axs #-[$578-$546] //SEG35 [18] *((const byte*) SCREEN3#0 + (byte) w::i#2) ← (const byte) w::b#0 -- pbuc1_derefidx_vbuyy=vbuc2 lda #b sta SCREEN3,y diff --git a/src/test/ref/clobber-a-problem.asm b/src/test/ref/clobber-a-problem.asm index 174bb4a3b..27614b4c8 100644 --- a/src/test/ref/clobber-a-problem.asm +++ b/src/test/ref/clobber-a-problem.asm @@ -24,7 +24,7 @@ irq: { lda #DARK_GREY sta BORDERCOL lax irq_raster_next - axs #-$15 + axs #-[$15] stx irq_raster_next // Setup next interrupt txa diff --git a/src/test/ref/clobber-a-problem.log b/src/test/ref/clobber-a-problem.log index c3c75bba1..85a705131 100644 --- a/src/test/ref/clobber-a-problem.log +++ b/src/test/ref/clobber-a-problem.log @@ -268,7 +268,7 @@ irq: { sta BORDERCOL //SEG18 [8] (byte) irq_raster_next#1 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz2_plus_vbuc1 lax irq_raster_next - axs #-$15 + axs #-[$15] stx irq_raster_next_1 //SEG19 [9] (byte) irq::raster_next#0 ← (byte) irq_raster_next#1 -- vbuz1=vbuz2 // Setup next interrupt @@ -400,7 +400,7 @@ irq: { sta BORDERCOL //SEG18 [8] (byte) irq_raster_next#1 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz1_plus_vbuc1 lax irq_raster_next - axs #-$15 + axs #-[$15] stx irq_raster_next //SEG19 [9] (byte) irq::raster_next#0 ← (byte) irq_raster_next#1 -- vbuxx=vbuz1 // Setup next interrupt @@ -547,7 +547,7 @@ irq: { sta BORDERCOL //SEG18 [8] (byte) irq_raster_next#1 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz1_plus_vbuc1 lax irq_raster_next - axs #-$15 + axs #-[$15] stx irq_raster_next //SEG19 [9] (byte) irq::raster_next#0 ← (byte) irq_raster_next#1 -- vbuxx=vbuz1 // Setup next interrupt diff --git a/src/test/ref/complex/tetris/test-sprites.asm b/src/test/ref/complex/tetris/test-sprites.asm index ff783114b..ded391e52 100644 --- a/src/test/ref/complex/tetris/test-sprites.asm +++ b/src/test/ref/complex/tetris/test-sprites.asm @@ -119,10 +119,10 @@ main: { lda #toSpritePtr2_return sta PLAYFIELD_SPRITE_PTRS_1,y lax xpos - axs #-$18 + axs #-[$18] stx xpos lax ypos - axs #-$18 + axs #-[$18] stx ypos iny cpy #8 @@ -149,7 +149,7 @@ loop: { lda SIN,x sta SPRITES_YPOS,y txa - axs #-$a + axs #-[$a] inc s lda #8 cmp s @@ -210,7 +210,7 @@ sprites_init: { lda #BLACK sta SPRITES_COLS,y lax xpos - axs #-$18 + axs #-[$18] stx xpos iny cpy #4 @@ -263,13 +263,13 @@ sprites_irq: { cmp irq_cnt beq b5 lax irq_raster_next - axs #-$14 + axs #-[$14] stx irq_raster_next lax irq_sprite_ypos - axs #-$15 + axs #-[$15] stx irq_sprite_ypos lax irq_sprite_ptr - axs #-3 + axs #-[3] stx irq_sprite_ptr b7: // Setup next interrupt @@ -289,15 +289,15 @@ sprites_irq: { lda #IRQ_RASTER_FIRST sta irq_raster_next lax irq_sprite_ypos - axs #-$15 + axs #-[$15] stx irq_sprite_ypos lax irq_sprite_ptr - axs #-3 + axs #-[3] stx irq_sprite_ptr jmp b7 b4: lax irq_raster_next - axs #-$15 + axs #-[$15] stx irq_raster_next lda #SPRITES_FIRST_YPOS sta irq_sprite_ypos diff --git a/src/test/ref/complex/tetris/test-sprites.log b/src/test/ref/complex/tetris/test-sprites.log index 6bcdc102e..20a66ef51 100644 --- a/src/test/ref/complex/tetris/test-sprites.log +++ b/src/test/ref/complex/tetris/test-sprites.log @@ -2348,11 +2348,11 @@ main: { sta PLAYFIELD_SPRITE_PTRS_1,y //SEG56 [29] (byte) main::xpos#1 ← (byte) main::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) $18 -- vbuz1=vbuz1_plus_vbuc1 lax xpos - axs #-$18 + axs #-[$18] stx xpos //SEG57 [30] (byte) main::ypos#1 ← (byte) main::ypos#2 + (byte/signed byte/word/signed word/dword/signed dword) $18 -- vbuz1=vbuz1_plus_vbuc1 lax ypos - axs #-$18 + axs #-[$18] stx ypos //SEG58 [31] (byte) main::s#1 ← ++ (byte) main::s#2 -- vbuz1=_inc_vbuz1 inc s @@ -2433,7 +2433,7 @@ loop: { sta SPRITES_YPOS,y //SEG86 [45] (byte) loop::idx#1 ← (byte) loop::idx#2 + (byte/signed byte/word/signed word/dword/signed dword) $a -- vbuz1=vbuz1_plus_vbuc1 lax idx - axs #-$a + axs #-[$a] stx idx //SEG87 [46] (byte) loop::s#1 ← ++ (byte) loop::s#2 -- vbuz1=_inc_vbuz1 inc s @@ -2547,7 +2547,7 @@ sprites_init: { sta SPRITES_COLS,y //SEG122 [69] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) $18 -- vbuz1=vbuz1_plus_vbuc1 lax xpos - axs #-$18 + axs #-[$18] stx xpos //SEG123 [70] (byte) sprites_init::s#1 ← ++ (byte) sprites_init::s#2 -- vbuz1=_inc_vbuz1 inc s @@ -2670,15 +2670,15 @@ sprites_irq: { b12: //SEG155 [93] (byte) irq_raster_next#3 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) $14 -- vbuz1=vbuz2_plus_vbuc1 lax irq_raster_next - axs #-$14 + axs #-[$14] stx irq_raster_next_3 //SEG156 [94] (byte) irq_sprite_ypos#3 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz2_plus_vbuc1 lax irq_sprite_ypos - axs #-$15 + axs #-[$15] stx irq_sprite_ypos_3 //SEG157 [95] (byte) irq_sprite_ptr#3 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz2_plus_vbuc1 lax irq_sprite_ptr - axs #-3 + axs #-[3] stx irq_sprite_ptr_3 //SEG158 [96] phi from sprites_irq::@12 sprites_irq::@15 sprites_irq::@5 to sprites_irq::@7 [phi:sprites_irq::@12/sprites_irq::@15/sprites_irq::@5->sprites_irq::@7] b7_from_b12: @@ -2717,18 +2717,18 @@ sprites_irq: { sta irq_raster_next_2 //SEG168 [102] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz2_plus_vbuc1 lax irq_sprite_ypos - axs #-$15 + axs #-[$15] stx irq_sprite_ypos_2 //SEG169 [103] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz2_plus_vbuc1 lax irq_sprite_ptr - axs #-3 + axs #-[3] stx irq_sprite_ptr_2 jmp b7_from_b5 //SEG170 sprites_irq::@4 b4: //SEG171 [104] (byte) irq_raster_next#1 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz2_plus_vbuc1 lax irq_raster_next - axs #-$15 + axs #-[$15] stx irq_raster_next_1 //SEG172 [105] (byte) irq_sprite_ypos#1 ← (const byte) SPRITES_FIRST_YPOS#0 -- vbuz1=vbuc1 lda #SPRITES_FIRST_YPOS @@ -3258,11 +3258,11 @@ main: { sta PLAYFIELD_SPRITE_PTRS_1,y //SEG56 [29] (byte) main::xpos#1 ← (byte) main::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) $18 -- vbuz1=vbuz1_plus_vbuc1 lax xpos - axs #-$18 + axs #-[$18] stx xpos //SEG57 [30] (byte) main::ypos#1 ← (byte) main::ypos#2 + (byte/signed byte/word/signed word/dword/signed dword) $18 -- vbuz1=vbuz1_plus_vbuc1 lax ypos - axs #-$18 + axs #-[$18] stx ypos //SEG58 [31] (byte) main::s#1 ← ++ (byte) main::s#2 -- vbuyy=_inc_vbuyy iny @@ -3337,7 +3337,7 @@ loop: { sta SPRITES_YPOS,y //SEG86 [45] (byte) loop::idx#1 ← (byte) loop::idx#2 + (byte/signed byte/word/signed word/dword/signed dword) $a -- vbuxx=vbuxx_plus_vbuc1 txa - axs #-$a + axs #-[$a] //SEG87 [46] (byte) loop::s#1 ← ++ (byte) loop::s#2 -- vbuz1=_inc_vbuz1 inc s //SEG88 [47] if((byte) loop::s#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto loop::@5 -- vbuz1_neq_vbuc1_then_la1 @@ -3445,7 +3445,7 @@ sprites_init: { sta SPRITES_COLS,y //SEG122 [69] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) $18 -- vbuz1=vbuz1_plus_vbuc1 lax xpos - axs #-$18 + axs #-[$18] stx xpos //SEG123 [70] (byte) sprites_init::s#1 ← ++ (byte) sprites_init::s#2 -- vbuyy=_inc_vbuyy iny @@ -3543,15 +3543,15 @@ sprites_irq: { b12: //SEG155 [93] (byte) irq_raster_next#3 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) $14 -- vbuz1=vbuz1_plus_vbuc1 lax irq_raster_next - axs #-$14 + axs #-[$14] stx irq_raster_next //SEG156 [94] (byte) irq_sprite_ypos#3 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz1_plus_vbuc1 lax irq_sprite_ypos - axs #-$15 + axs #-[$15] stx irq_sprite_ypos //SEG157 [95] (byte) irq_sprite_ptr#3 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz1_plus_vbuc1 lax irq_sprite_ptr - axs #-3 + axs #-[3] stx irq_sprite_ptr //SEG158 [96] phi from sprites_irq::@12 sprites_irq::@15 sprites_irq::@5 to sprites_irq::@7 [phi:sprites_irq::@12/sprites_irq::@15/sprites_irq::@5->sprites_irq::@7] b7_from_b12: @@ -3588,18 +3588,18 @@ sprites_irq: { sta irq_raster_next //SEG168 [102] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz1_plus_vbuc1 lax irq_sprite_ypos - axs #-$15 + axs #-[$15] stx irq_sprite_ypos //SEG169 [103] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz1_plus_vbuc1 lax irq_sprite_ptr - axs #-3 + axs #-[3] stx irq_sprite_ptr jmp b7_from_b5 //SEG170 sprites_irq::@4 b4: //SEG171 [104] (byte) irq_raster_next#1 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz1_plus_vbuc1 lax irq_raster_next - axs #-$15 + axs #-[$15] stx irq_raster_next //SEG172 [105] (byte) irq_sprite_ypos#1 ← (const byte) SPRITES_FIRST_YPOS#0 -- vbuz1=vbuc1 lda #SPRITES_FIRST_YPOS @@ -4264,11 +4264,11 @@ main: { sta PLAYFIELD_SPRITE_PTRS_1,y //SEG56 [29] (byte) main::xpos#1 ← (byte) main::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) $18 -- vbuz1=vbuz1_plus_vbuc1 lax xpos - axs #-$18 + axs #-[$18] stx xpos //SEG57 [30] (byte) main::ypos#1 ← (byte) main::ypos#2 + (byte/signed byte/word/signed word/dword/signed dword) $18 -- vbuz1=vbuz1_plus_vbuc1 lax ypos - axs #-$18 + axs #-[$18] stx ypos //SEG58 [31] (byte) main::s#1 ← ++ (byte) main::s#2 -- vbuyy=_inc_vbuyy iny @@ -4324,7 +4324,7 @@ loop: { sta SPRITES_YPOS,y //SEG86 [45] (byte) loop::idx#1 ← (byte) loop::idx#2 + (byte/signed byte/word/signed word/dword/signed dword) $a -- vbuxx=vbuxx_plus_vbuc1 txa - axs #-$a + axs #-[$a] //SEG87 [46] (byte) loop::s#1 ← ++ (byte) loop::s#2 -- vbuz1=_inc_vbuz1 inc s //SEG88 [47] if((byte) loop::s#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto loop::@5 -- vbuz1_neq_vbuc1_then_la1 @@ -4421,7 +4421,7 @@ sprites_init: { sta SPRITES_COLS,y //SEG122 [69] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) $18 -- vbuz1=vbuz1_plus_vbuc1 lax xpos - axs #-$18 + axs #-[$18] stx xpos //SEG123 [70] (byte) sprites_init::s#1 ← ++ (byte) sprites_init::s#2 -- vbuyy=_inc_vbuyy iny @@ -4507,15 +4507,15 @@ sprites_irq: { //SEG154 sprites_irq::@12 //SEG155 [93] (byte) irq_raster_next#3 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) $14 -- vbuz1=vbuz1_plus_vbuc1 lax irq_raster_next - axs #-$14 + axs #-[$14] stx irq_raster_next //SEG156 [94] (byte) irq_sprite_ypos#3 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz1_plus_vbuc1 lax irq_sprite_ypos - axs #-$15 + axs #-[$15] stx irq_sprite_ypos //SEG157 [95] (byte) irq_sprite_ptr#3 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz1_plus_vbuc1 lax irq_sprite_ptr - axs #-3 + axs #-[3] stx irq_sprite_ptr //SEG158 [96] phi from sprites_irq::@12 sprites_irq::@15 sprites_irq::@5 to sprites_irq::@7 [phi:sprites_irq::@12/sprites_irq::@15/sprites_irq::@5->sprites_irq::@7] //SEG159 [96] phi (byte) irq_raster_next#4 = (byte) irq_raster_next#3 [phi:sprites_irq::@12/sprites_irq::@15/sprites_irq::@5->sprites_irq::@7#0] -- register_copy @@ -4546,18 +4546,18 @@ sprites_irq: { sta irq_raster_next //SEG168 [102] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz1_plus_vbuc1 lax irq_sprite_ypos - axs #-$15 + axs #-[$15] stx irq_sprite_ypos //SEG169 [103] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz1_plus_vbuc1 lax irq_sprite_ptr - axs #-3 + axs #-[3] stx irq_sprite_ptr jmp b7 //SEG170 sprites_irq::@4 b4: //SEG171 [104] (byte) irq_raster_next#1 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz1_plus_vbuc1 lax irq_raster_next - axs #-$15 + axs #-[$15] stx irq_raster_next //SEG172 [105] (byte) irq_sprite_ypos#1 ← (const byte) SPRITES_FIRST_YPOS#0 -- vbuz1=vbuc1 lda #SPRITES_FIRST_YPOS diff --git a/src/test/ref/complex/tetris/tetris.asm b/src/test/ref/complex/tetris/tetris.asm index 37f1c5c9b..7fcda77fe 100644 --- a/src/test/ref/complex/tetris/tetris.asm +++ b/src/test/ref/complex/tetris/tetris.asm @@ -488,7 +488,7 @@ render_moving: { cmp ypos2 bcc b2 lax i - axs #-4 + axs #-[4] stx i b3: lda ypos2 @@ -618,7 +618,7 @@ play_move_rotate: { rts b2: lax current_orientation - axs #-$10 + axs #-[$10] lda #$3f sax orientation b4: @@ -989,7 +989,7 @@ play_increase_level: { bne b3 // If level low nybble hits $a change to $10 lax level_bcd - axs #-6 + axs #-[6] stx level_bcd b3: // Increase the score values gained @@ -1060,7 +1060,7 @@ play_remove_lines: { cmp full bne b4 txa - axs #-PLAYFIELD_COLS + axs #-[PLAYFIELD_COLS] inc removed b4: inc y @@ -1191,7 +1191,7 @@ keyboard_event_scan: { cmp keyboard_scan_values,y bne b6 lax keycode - axs #-8 + axs #-[8] stx keycode b3: inc row @@ -1340,7 +1340,7 @@ play_init: { inc pli+1 !: lax idx - axs #-PLAYFIELD_COLS + axs #-[PLAYFIELD_COLS] stx idx iny cpy #PLAYFIELD_LINES-1+1 @@ -1423,7 +1423,7 @@ sprites_init: { lda #BLACK sta SPRITES_COLS,y lax xpos - axs #-$18 + axs #-[$18] stx xpos iny cpy #4 @@ -1654,13 +1654,13 @@ sprites_irq: { cmp irq_cnt beq b5 lax irq_raster_next - axs #-$14 + axs #-[$14] stx irq_raster_next lax irq_sprite_ypos - axs #-$15 + axs #-[$15] stx irq_sprite_ypos lax irq_sprite_ptr - axs #-3 + axs #-[3] stx irq_sprite_ptr b7: // Setup next interrupt @@ -1680,15 +1680,15 @@ sprites_irq: { lda #IRQ_RASTER_FIRST sta irq_raster_next lax irq_sprite_ypos - axs #-$15 + axs #-[$15] stx irq_sprite_ypos lax irq_sprite_ptr - axs #-3 + axs #-[3] stx irq_sprite_ptr jmp b7 b4: lax irq_raster_next - axs #-$15 + axs #-[$15] stx irq_raster_next lda #SPRITES_FIRST_YPOS sta irq_sprite_ypos diff --git a/src/test/ref/complex/tetris/tetris.log b/src/test/ref/complex/tetris/tetris.log index 1b94a04bb..7711c7501 100644 --- a/src/test/ref/complex/tetris/tetris.log +++ b/src/test/ref/complex/tetris/tetris.log @@ -13613,7 +13613,7 @@ render_bcd: { sta _3 //SEG261 [99] (byte~) render_bcd::$4 ← (const byte) render_bcd::ZERO_CHAR#0 + (byte~) render_bcd::$3 -- vbuz1=vbuc1_plus_vbuz2 lax _3 - axs #-ZERO_CHAR + axs #-[ZERO_CHAR] stx _4 //SEG262 [100] *((byte*) render_bcd::screen_pos#0) ← (byte~) render_bcd::$4 -- _deref_pbuz1=vbuz2 lda _4 @@ -13637,7 +13637,7 @@ render_bcd: { sta _5 //SEG268 [104] (byte~) render_bcd::$6 ← (const byte) render_bcd::ZERO_CHAR#0 + (byte~) render_bcd::$5 -- vbuz1=vbuc1_plus_vbuz2 lax _5 - axs #-ZERO_CHAR + axs #-[ZERO_CHAR] stx _6 //SEG269 [105] *((byte*) render_bcd::screen_pos#3) ← (byte~) render_bcd::$6 -- _deref_pbuz1=vbuz2 lda _6 @@ -13848,7 +13848,7 @@ render_moving: { b6: //SEG333 [133] (byte) render_moving::i#1 ← (byte) render_moving::i#3 + (byte/signed byte/word/signed word/dword/signed dword) 4 -- vbuz1=vbuz1_plus_vbuc1 lax i - axs #-4 + axs #-[4] stx i //SEG334 [134] phi from render_moving::@5 render_moving::@6 to render_moving::@3 [phi:render_moving::@5/render_moving::@6->render_moving::@3] b3_from_b5: @@ -14054,7 +14054,7 @@ play_movement: { sta _0 //SEG400 [168] (byte) play_movement::render#1 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + (byte~) play_movement::$0 -- vbuz1=vbuc1_plus_vbuz2 lax _0 - axs #-0 + axs #-[0] stx render //SEG401 [169] if((byte) game_over#15==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_movement::@1 -- vbuz1_eq_0_then_la1 lda game_over @@ -14154,7 +14154,7 @@ play_move_rotate: { b2: //SEG433 [186] (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 ← (byte) current_orientation#20 + (byte/signed byte/word/signed word/dword/signed dword) $10 -- vbuz1=vbuz2_plus_vbuc1 lax current_orientation - axs #-$10 + axs #-[$10] stx _2 //SEG434 [187] (byte) play_move_rotate::orientation#2 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 & (byte/signed byte/word/signed word/dword/signed dword) $3f -- vbuz1=vbuz2_band_vbuc1 lda #$3f @@ -15118,7 +15118,7 @@ play_increase_level: { //SEG781 [334] (byte) level_bcd#8 ← (byte) level_bcd#21 + (byte/signed byte/word/signed word/dword/signed dword) 6 -- vbuz1=vbuz1_plus_vbuc1 // If level low nybble hits $a change to $10 lax level_bcd - axs #-6 + axs #-[6] stx level_bcd //SEG782 [335] phi from play_increase_level::@2 play_increase_level::@7 to play_increase_level::@3 [phi:play_increase_level::@2/play_increase_level::@7->play_increase_level::@3] b3_from_b2: @@ -15280,7 +15280,7 @@ play_remove_lines: { b10: //SEG835 [356] (byte) play_remove_lines::w#2 ← (byte) play_remove_lines::w#1 + (const byte) PLAYFIELD_COLS#0 -- vbuz1=vbuz1_plus_vbuc1 lax w - axs #-PLAYFIELD_COLS + axs #-[PLAYFIELD_COLS] stx w //SEG836 [357] (byte) play_remove_lines::removed#1 ← ++ (byte) play_remove_lines::removed#11 -- vbuz1=_inc_vbuz1 inc removed @@ -15588,7 +15588,7 @@ keyboard_event_scan: { b13: //SEG933 [402] (byte) keyboard_event_scan::keycode#1 ← (byte) keyboard_event_scan::keycode#11 + (byte/signed byte/word/signed word/dword/signed dword) 8 -- vbuz1=vbuz1_plus_vbuc1 lax keycode - axs #-8 + axs #-[8] stx keycode //SEG934 [403] phi from keyboard_event_scan::@13 keyboard_event_scan::@19 to keyboard_event_scan::@3 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3] b3_from_b13: @@ -15983,7 +15983,7 @@ play_init: { !: //SEG1059 [466] (byte) play_init::idx#1 ← (byte) play_init::idx#2 + (const byte) PLAYFIELD_COLS#0 -- vbuz1=vbuz1_plus_vbuc1 lax idx - axs #-PLAYFIELD_COLS + axs #-[PLAYFIELD_COLS] stx idx //SEG1060 [467] (byte) play_init::j#1 ← ++ (byte) play_init::j#2 -- vbuz1=_inc_vbuz1 inc j @@ -16137,7 +16137,7 @@ sprites_init: { sta SPRITES_COLS,y //SEG1105 [497] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) $18 -- vbuz1=vbuz1_plus_vbuc1 lax xpos - axs #-$18 + axs #-[$18] stx xpos //SEG1106 [498] (byte) sprites_init::s#1 ← ++ (byte) sprites_init::s#2 -- vbuz1=_inc_vbuz1 inc s @@ -16599,15 +16599,15 @@ sprites_irq: { b12: //SEG1244 [575] (byte) irq_raster_next#3 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) $14 -- vbuz1=vbuz2_plus_vbuc1 lax irq_raster_next - axs #-$14 + axs #-[$14] stx irq_raster_next_3 //SEG1245 [576] (byte) irq_sprite_ypos#3 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz2_plus_vbuc1 lax irq_sprite_ypos - axs #-$15 + axs #-[$15] stx irq_sprite_ypos_3 //SEG1246 [577] (byte) irq_sprite_ptr#3 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz2_plus_vbuc1 lax irq_sprite_ptr - axs #-3 + axs #-[3] stx irq_sprite_ptr_3 //SEG1247 [578] phi from sprites_irq::@12 sprites_irq::@15 sprites_irq::@5 to sprites_irq::@7 [phi:sprites_irq::@12/sprites_irq::@15/sprites_irq::@5->sprites_irq::@7] b7_from_b12: @@ -16646,18 +16646,18 @@ sprites_irq: { sta irq_raster_next_2 //SEG1257 [584] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz2_plus_vbuc1 lax irq_sprite_ypos - axs #-$15 + axs #-[$15] stx irq_sprite_ypos_2 //SEG1258 [585] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz2_plus_vbuc1 lax irq_sprite_ptr - axs #-3 + axs #-[3] stx irq_sprite_ptr_2 jmp b7_from_b5 //SEG1259 sprites_irq::@4 b4: //SEG1260 [586] (byte) irq_raster_next#1 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz2_plus_vbuc1 lax irq_raster_next - axs #-$15 + axs #-[$15] stx irq_raster_next_1 //SEG1261 [587] (byte) irq_sprite_ypos#1 ← (const byte) SPRITES_FIRST_YPOS#0 -- vbuz1=vbuc1 lda #SPRITES_FIRST_YPOS @@ -19022,7 +19022,7 @@ render_moving: { b6: //SEG333 [133] (byte) render_moving::i#1 ← (byte) render_moving::i#3 + (byte/signed byte/word/signed word/dword/signed dword) 4 -- vbuz1=vbuz1_plus_vbuc1 lax i - axs #-4 + axs #-[4] stx i //SEG334 [134] phi from render_moving::@5 render_moving::@6 to render_moving::@3 [phi:render_moving::@5/render_moving::@6->render_moving::@3] b3_from_b5: @@ -19289,7 +19289,7 @@ play_move_rotate: { b2: //SEG433 [186] (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 ← (byte) current_orientation#20 + (byte/signed byte/word/signed word/dword/signed dword) $10 -- vbuxx=vbuz1_plus_vbuc1 lax current_orientation - axs #-$10 + axs #-[$10] //SEG434 [187] (byte) play_move_rotate::orientation#2 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 & (byte/signed byte/word/signed word/dword/signed dword) $3f -- vbuz1=vbuxx_band_vbuc1 lda #$3f sax orientation @@ -20134,7 +20134,7 @@ play_increase_level: { //SEG781 [334] (byte) level_bcd#8 ← (byte) level_bcd#21 + (byte/signed byte/word/signed word/dword/signed dword) 6 -- vbuz1=vbuz1_plus_vbuc1 // If level low nybble hits $a change to $10 lax level_bcd - axs #-6 + axs #-[6] stx level_bcd //SEG782 [335] phi from play_increase_level::@2 play_increase_level::@7 to play_increase_level::@3 [phi:play_increase_level::@2/play_increase_level::@7->play_increase_level::@3] b3_from_b2: @@ -20286,7 +20286,7 @@ play_remove_lines: { b10: //SEG835 [356] (byte) play_remove_lines::w#2 ← (byte) play_remove_lines::w#1 + (const byte) PLAYFIELD_COLS#0 -- vbuxx=vbuxx_plus_vbuc1 txa - axs #-PLAYFIELD_COLS + axs #-[PLAYFIELD_COLS] //SEG836 [357] (byte) play_remove_lines::removed#1 ← ++ (byte) play_remove_lines::removed#11 -- vbuz1=_inc_vbuz1 inc removed //SEG837 [358] phi from play_remove_lines::@10 play_remove_lines::@9 to play_remove_lines::@4 [phi:play_remove_lines::@10/play_remove_lines::@9->play_remove_lines::@4] @@ -20558,7 +20558,7 @@ keyboard_event_scan: { b13: //SEG933 [402] (byte) keyboard_event_scan::keycode#1 ← (byte) keyboard_event_scan::keycode#11 + (byte/signed byte/word/signed word/dword/signed dword) 8 -- vbuz1=vbuz1_plus_vbuc1 lax keycode - axs #-8 + axs #-[8] stx keycode //SEG934 [403] phi from keyboard_event_scan::@13 keyboard_event_scan::@19 to keyboard_event_scan::@3 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3] b3_from_b13: @@ -20902,7 +20902,7 @@ play_init: { !: //SEG1059 [466] (byte) play_init::idx#1 ← (byte) play_init::idx#2 + (const byte) PLAYFIELD_COLS#0 -- vbuz1=vbuz1_plus_vbuc1 lax idx - axs #-PLAYFIELD_COLS + axs #-[PLAYFIELD_COLS] stx idx //SEG1060 [467] (byte) play_init::j#1 ← ++ (byte) play_init::j#2 -- vbuyy=_inc_vbuyy iny @@ -21047,7 +21047,7 @@ sprites_init: { sta SPRITES_COLS,y //SEG1105 [497] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) $18 -- vbuz1=vbuz1_plus_vbuc1 lax xpos - axs #-$18 + axs #-[$18] stx xpos //SEG1106 [498] (byte) sprites_init::s#1 ← ++ (byte) sprites_init::s#2 -- vbuyy=_inc_vbuyy iny @@ -21472,15 +21472,15 @@ sprites_irq: { b12: //SEG1244 [575] (byte) irq_raster_next#3 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) $14 -- vbuz1=vbuz1_plus_vbuc1 lax irq_raster_next - axs #-$14 + axs #-[$14] stx irq_raster_next //SEG1245 [576] (byte) irq_sprite_ypos#3 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz1_plus_vbuc1 lax irq_sprite_ypos - axs #-$15 + axs #-[$15] stx irq_sprite_ypos //SEG1246 [577] (byte) irq_sprite_ptr#3 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz1_plus_vbuc1 lax irq_sprite_ptr - axs #-3 + axs #-[3] stx irq_sprite_ptr //SEG1247 [578] phi from sprites_irq::@12 sprites_irq::@15 sprites_irq::@5 to sprites_irq::@7 [phi:sprites_irq::@12/sprites_irq::@15/sprites_irq::@5->sprites_irq::@7] b7_from_b12: @@ -21517,18 +21517,18 @@ sprites_irq: { sta irq_raster_next //SEG1257 [584] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz1_plus_vbuc1 lax irq_sprite_ypos - axs #-$15 + axs #-[$15] stx irq_sprite_ypos //SEG1258 [585] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz1_plus_vbuc1 lax irq_sprite_ptr - axs #-3 + axs #-[3] stx irq_sprite_ptr jmp b7_from_b5 //SEG1259 sprites_irq::@4 b4: //SEG1260 [586] (byte) irq_raster_next#1 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz1_plus_vbuc1 lax irq_raster_next - axs #-$15 + axs #-[$15] stx irq_raster_next //SEG1261 [587] (byte) irq_sprite_ypos#1 ← (const byte) SPRITES_FIRST_YPOS#0 -- vbuz1=vbuc1 lda #SPRITES_FIRST_YPOS @@ -24438,7 +24438,7 @@ render_moving: { //SEG332 render_moving::@6 //SEG333 [133] (byte) render_moving::i#1 ← (byte) render_moving::i#3 + (byte/signed byte/word/signed word/dword/signed dword) 4 -- vbuz1=vbuz1_plus_vbuc1 lax i - axs #-4 + axs #-[4] stx i //SEG334 [134] phi from render_moving::@5 render_moving::@6 to render_moving::@3 [phi:render_moving::@5/render_moving::@6->render_moving::@3] //SEG335 [134] phi (byte) render_moving::i#8 = (byte) render_moving::i#2 [phi:render_moving::@5/render_moving::@6->render_moving::@3#0] -- register_copy @@ -24668,7 +24668,7 @@ play_move_rotate: { b2: //SEG433 [186] (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 ← (byte) current_orientation#20 + (byte/signed byte/word/signed word/dword/signed dword) $10 -- vbuxx=vbuz1_plus_vbuc1 lax current_orientation - axs #-$10 + axs #-[$10] //SEG434 [187] (byte) play_move_rotate::orientation#2 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 & (byte/signed byte/word/signed word/dword/signed dword) $3f -- vbuz1=vbuxx_band_vbuc1 lda #$3f sax orientation @@ -25387,7 +25387,7 @@ play_increase_level: { //SEG781 [334] (byte) level_bcd#8 ← (byte) level_bcd#21 + (byte/signed byte/word/signed word/dword/signed dword) 6 -- vbuz1=vbuz1_plus_vbuc1 // If level low nybble hits $a change to $10 lax level_bcd - axs #-6 + axs #-[6] stx level_bcd //SEG782 [335] phi from play_increase_level::@2 play_increase_level::@7 to play_increase_level::@3 [phi:play_increase_level::@2/play_increase_level::@7->play_increase_level::@3] //SEG783 [335] phi (byte) level_bcd#64 = (byte) level_bcd#21 [phi:play_increase_level::@2/play_increase_level::@7->play_increase_level::@3#0] -- register_copy @@ -25512,7 +25512,7 @@ play_remove_lines: { //SEG834 play_remove_lines::@10 //SEG835 [356] (byte) play_remove_lines::w#2 ← (byte) play_remove_lines::w#1 + (const byte) PLAYFIELD_COLS#0 -- vbuxx=vbuxx_plus_vbuc1 txa - axs #-PLAYFIELD_COLS + axs #-[PLAYFIELD_COLS] //SEG836 [357] (byte) play_remove_lines::removed#1 ← ++ (byte) play_remove_lines::removed#11 -- vbuz1=_inc_vbuz1 inc removed //SEG837 [358] phi from play_remove_lines::@10 play_remove_lines::@9 to play_remove_lines::@4 [phi:play_remove_lines::@10/play_remove_lines::@9->play_remove_lines::@4] @@ -25741,7 +25741,7 @@ keyboard_event_scan: { //SEG932 keyboard_event_scan::@13 //SEG933 [402] (byte) keyboard_event_scan::keycode#1 ← (byte) keyboard_event_scan::keycode#11 + (byte/signed byte/word/signed word/dword/signed dword) 8 -- vbuz1=vbuz1_plus_vbuc1 lax keycode - axs #-8 + axs #-[8] stx keycode //SEG934 [403] phi from keyboard_event_scan::@13 keyboard_event_scan::@19 to keyboard_event_scan::@3 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3] //SEG935 [403] phi (byte) keyboard_events_size#13 = (byte) keyboard_events_size#29 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3#0] -- register_copy @@ -26016,7 +26016,7 @@ play_init: { !: //SEG1059 [466] (byte) play_init::idx#1 ← (byte) play_init::idx#2 + (const byte) PLAYFIELD_COLS#0 -- vbuz1=vbuz1_plus_vbuc1 lax idx - axs #-PLAYFIELD_COLS + axs #-[PLAYFIELD_COLS] stx idx //SEG1060 [467] (byte) play_init::j#1 ← ++ (byte) play_init::j#2 -- vbuyy=_inc_vbuyy iny @@ -26145,7 +26145,7 @@ sprites_init: { sta SPRITES_COLS,y //SEG1105 [497] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) $18 -- vbuz1=vbuz1_plus_vbuc1 lax xpos - axs #-$18 + axs #-[$18] stx xpos //SEG1106 [498] (byte) sprites_init::s#1 ← ++ (byte) sprites_init::s#2 -- vbuyy=_inc_vbuyy iny @@ -26515,15 +26515,15 @@ sprites_irq: { //SEG1243 sprites_irq::@12 //SEG1244 [575] (byte) irq_raster_next#3 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) $14 -- vbuz1=vbuz1_plus_vbuc1 lax irq_raster_next - axs #-$14 + axs #-[$14] stx irq_raster_next //SEG1245 [576] (byte) irq_sprite_ypos#3 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz1_plus_vbuc1 lax irq_sprite_ypos - axs #-$15 + axs #-[$15] stx irq_sprite_ypos //SEG1246 [577] (byte) irq_sprite_ptr#3 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz1_plus_vbuc1 lax irq_sprite_ptr - axs #-3 + axs #-[3] stx irq_sprite_ptr //SEG1247 [578] phi from sprites_irq::@12 sprites_irq::@15 sprites_irq::@5 to sprites_irq::@7 [phi:sprites_irq::@12/sprites_irq::@15/sprites_irq::@5->sprites_irq::@7] //SEG1248 [578] phi (byte) irq_raster_next#4 = (byte) irq_raster_next#3 [phi:sprites_irq::@12/sprites_irq::@15/sprites_irq::@5->sprites_irq::@7#0] -- register_copy @@ -26554,18 +26554,18 @@ sprites_irq: { sta irq_raster_next //SEG1257 [584] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz1_plus_vbuc1 lax irq_sprite_ypos - axs #-$15 + axs #-[$15] stx irq_sprite_ypos //SEG1258 [585] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz1_plus_vbuc1 lax irq_sprite_ptr - axs #-3 + axs #-[3] stx irq_sprite_ptr jmp b7 //SEG1259 sprites_irq::@4 b4: //SEG1260 [586] (byte) irq_raster_next#1 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) $15 -- vbuz1=vbuz1_plus_vbuc1 lax irq_raster_next - axs #-$15 + axs #-[$15] stx irq_raster_next //SEG1261 [587] (byte) irq_sprite_ypos#1 ← (const byte) SPRITES_FIRST_YPOS#0 -- vbuz1=vbuc1 lda #SPRITES_FIRST_YPOS diff --git a/src/test/ref/consolidate-array-index-problem.asm b/src/test/ref/consolidate-array-index-problem.asm index ea94dd246..16a07f6e9 100644 --- a/src/test/ref/consolidate-array-index-problem.asm +++ b/src/test/ref/consolidate-array-index-problem.asm @@ -9,7 +9,7 @@ main: { b1: tya tax - axs #-$c + axs #-[$c] lda #'a' sta screen,x lda #BLACK diff --git a/src/test/ref/consolidate-array-index-problem.log b/src/test/ref/consolidate-array-index-problem.log index 634118e73..2b1edade8 100644 --- a/src/test/ref/consolidate-array-index-problem.log +++ b/src/test/ref/consolidate-array-index-problem.log @@ -177,7 +177,7 @@ main: { b1: //SEG16 [6] (byte) main::y#0 ← (byte) main::x#2 + (byte/signed byte/word/signed word/dword/signed dword) $c -- vbuz1=vbuz2_plus_vbuc1 lax x - axs #-$c + axs #-[$c] stx y //SEG17 [7] *((const byte*) main::screen#0 + (byte) main::y#0) ← (byte) 'a' -- pbuc1_derefidx_vbuz1=vbuc2 lda #'a' @@ -260,7 +260,7 @@ main: { //SEG16 [6] (byte) main::y#0 ← (byte) main::x#2 + (byte/signed byte/word/signed word/dword/signed dword) $c -- vbuxx=vbuyy_plus_vbuc1 tya tax - axs #-$c + axs #-[$c] //SEG17 [7] *((const byte*) main::screen#0 + (byte) main::y#0) ← (byte) 'a' -- pbuc1_derefidx_vbuxx=vbuc2 lda #'a' sta screen,x @@ -358,7 +358,7 @@ main: { //SEG16 [6] (byte) main::y#0 ← (byte) main::x#2 + (byte/signed byte/word/signed word/dword/signed dword) $c -- vbuxx=vbuyy_plus_vbuc1 tya tax - axs #-$c + axs #-[$c] //SEG17 [7] *((const byte*) main::screen#0 + (byte) main::y#0) ← (byte) 'a' -- pbuc1_derefidx_vbuxx=vbuc2 lda #'a' sta screen,x diff --git a/src/test/ref/const-param.log b/src/test/ref/const-param.log index 45c971efb..69c348bb7 100644 --- a/src/test/ref/const-param.log +++ b/src/test/ref/const-param.log @@ -339,7 +339,7 @@ sum: { .label b = 2 //SEG35 [19] (byte) sum::return#3 ← (const byte) main::reverse#0 + (byte) sum::b#3 -- vbuz1=vbuc1_plus_vbuz2 lax b - axs #-main.reverse + axs #-[main.reverse] stx return_3 jmp breturn //SEG36 sum::@return diff --git a/src/test/ref/examples/3d/3d.asm b/src/test/ref/examples/3d/3d.asm index 393897ad4..da3808e59 100644 --- a/src/test/ref/examples/3d/3d.asm +++ b/src/test/ref/examples/3d/3d.asm @@ -321,7 +321,7 @@ debug_print: { ldx yps,y jsr print_sbyte_at lax c - axs #-4 + axs #-[4] stx c inc i lda #8 @@ -555,7 +555,7 @@ calculate_matrix: { axs #sz stx t1 lax sy - axs #-sz + axs #-[sz] tya clc adc #sz @@ -863,7 +863,7 @@ debug_print_init: { sta j b2: lax i - axs #-8 + axs #-[8] lda c clc adc #inci] @@ -332,7 +332,7 @@ inci: { .label return_2 = 9 //SEG30 [17] (byte) i#11 ← (byte) i#10 + (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuz1=vbuz1_plus_vbuc1 lax i - axs #-7 + axs #-[7] stx i //SEG31 [18] (byte) inci::return#2 ← (byte) i#11 -- vbuz1=vbuz2 lda i diff --git a/src/test/ref/overlap-allocation-2.asm b/src/test/ref/overlap-allocation-2.asm index 10e63e87f..1d7d8b835 100644 --- a/src/test/ref/overlap-allocation-2.asm +++ b/src/test/ref/overlap-allocation-2.asm @@ -26,7 +26,7 @@ main: { line: { jsr plot txa - axs #-$14 + axs #-[$14] jsr plot rts } diff --git a/src/test/ref/overlap-allocation-2.log b/src/test/ref/overlap-allocation-2.log index a87da3c94..53870c4b5 100644 --- a/src/test/ref/overlap-allocation-2.log +++ b/src/test/ref/overlap-allocation-2.log @@ -360,7 +360,7 @@ line: { b1: //SEG43 [19] (byte) plot::x#1 ← (byte) line::l#2 + (byte/signed byte/word/signed word/dword/signed dword) $14 -- vbuz1=vbuz2_plus_vbuc1 lax l - axs #-$14 + axs #-[$14] stx plot.x //SEG44 [20] call plot //SEG45 [22] phi from line::@1 to plot [phi:line::@1->plot] @@ -516,7 +516,7 @@ line: { b1: //SEG43 [19] (byte) plot::x#1 ← (byte) line::l#2 + (byte/signed byte/word/signed word/dword/signed dword) $14 -- vbuxx=vbuxx_plus_vbuc1 txa - axs #-$14 + axs #-[$14] //SEG44 [20] call plot //SEG45 [22] phi from line::@1 to plot [phi:line::@1->plot] plot_from_b1: @@ -698,7 +698,7 @@ line: { //SEG42 line::@1 //SEG43 [19] (byte) plot::x#1 ← (byte) line::l#2 + (byte/signed byte/word/signed word/dword/signed dword) $14 -- vbuxx=vbuxx_plus_vbuc1 txa - axs #-$14 + axs #-[$14] //SEG44 [20] call plot //SEG45 [22] phi from line::@1 to plot [phi:line::@1->plot] //SEG46 [22] phi (byte) plot::x#2 = (byte) plot::x#1 [phi:line::@1->plot#0] -- register_copy diff --git a/src/test/ref/sinusgenscale8.asm b/src/test/ref/sinusgenscale8.asm index 09c954b45..a9c93936e 100644 --- a/src/test/ref/sinusgenscale8.asm +++ b/src/test/ref/sinusgenscale8.asm @@ -109,7 +109,7 @@ sin8u_table: { jsr mul8su lda sinx_sc+1 tax - axs #-mid + axs #-[mid] txa ldy #0 sta (sintab),y diff --git a/src/test/ref/sinusgenscale8.log b/src/test/ref/sinusgenscale8.log index 52c78f8d6..bf7fc798e 100644 --- a/src/test/ref/sinusgenscale8.log +++ b/src/test/ref/sinusgenscale8.log @@ -3791,7 +3791,7 @@ sin8u_table: { sta _21 //SEG108 [44] (byte) sin8u_table::sinx_tr#0 ← (const byte) sin8u_table::mid#0 + (byte~) sin8u_table::$21 -- vbuz1=vbuc1_plus_vbuz2 lax _21 - axs #-mid + axs #-[mid] stx sinx_tr //SEG109 [45] *((byte*) sin8u_table::sintab#2) ← (byte) sin8u_table::sinx_tr#0 -- _deref_pbuz1=vbuz2 lda sinx_tr @@ -5537,7 +5537,7 @@ sin8u_table: { lda sinx_sc+1 //SEG108 [44] (byte) sin8u_table::sinx_tr#0 ← (const byte) sin8u_table::mid#0 + (byte~) sin8u_table::$21 -- vbuxx=vbuc1_plus_vbuaa tax - axs #-mid + axs #-[mid] //SEG109 [45] *((byte*) sin8u_table::sintab#2) ← (byte) sin8u_table::sinx_tr#0 -- _deref_pbuz1=vbuxx txa ldy #0 @@ -7443,7 +7443,7 @@ sin8u_table: { lda sinx_sc+1 //SEG108 [44] (byte) sin8u_table::sinx_tr#0 ← (const byte) sin8u_table::mid#0 + (byte~) sin8u_table::$21 -- vbuxx=vbuc1_plus_vbuaa tax - axs #-mid + axs #-[mid] //SEG109 [45] *((byte*) sin8u_table::sintab#2) ← (byte) sin8u_table::sinx_tr#0 -- _deref_pbuz1=vbuxx txa ldy #0 diff --git a/src/test/ref/test-comments-block.log b/src/test/ref/test-comments-block.log index c1b12665d..7a8174488 100644 --- a/src/test/ref/test-comments-block.log +++ b/src/test/ref/test-comments-block.log @@ -317,7 +317,7 @@ sum: { .label return_1 = 7 //SEG30 [15] (byte) sum::return#1 ← (const byte) a#0 + (byte) sum::b#0 -- vbuz1=vbuc1_plus_vbuz2 lax b - axs #-a + axs #-[a] stx return_1 jmp breturn //SEG31 sum::@return diff --git a/src/test/ref/test-comments-single.log b/src/test/ref/test-comments-single.log index bcce2d21d..c273020c0 100644 --- a/src/test/ref/test-comments-single.log +++ b/src/test/ref/test-comments-single.log @@ -315,7 +315,7 @@ sum: { .label return_1 = 7 //SEG30 [15] (byte) sum::return#1 ← (const byte) a#0 + (byte) sum::b#0 -- vbuz1=vbuc1_plus_vbuz2 lax b - axs #-a + axs #-[a] stx return_1 jmp breturn //SEG31 sum::@return diff --git a/src/test/ref/test-comparisons.asm b/src/test/ref/test-comparisons.asm index bba880831..1eea230d5 100644 --- a/src/test/ref/test-comparisons.asm +++ b/src/test/ref/test-comparisons.asm @@ -357,7 +357,7 @@ main: { jsr printu jsr print_ln lax a - axs #-$30 + axs #-[$30] stx a inc i lda #5 diff --git a/src/test/ref/test-comparisons.log b/src/test/ref/test-comparisons.log index 49a127180..34d06b383 100644 --- a/src/test/ref/test-comparisons.log +++ b/src/test/ref/test-comparisons.log @@ -4199,7 +4199,7 @@ main: { b70: //SEG424 [157] (byte) main::a#1 ← (byte) main::a#10 + (byte/signed byte/word/signed word/dword/signed dword) $30 -- vbuz1=vbuz1_plus_vbuc1 lax a - axs #-$30 + axs #-[$30] stx a //SEG425 [158] (byte) main::i#1 ← ++ (byte) main::i#10 -- vbuz1=_inc_vbuz1 inc i @@ -5742,7 +5742,7 @@ main: { b70: //SEG424 [157] (byte) main::a#1 ← (byte) main::a#10 + (byte/signed byte/word/signed word/dword/signed dword) $30 -- vbuz1=vbuz1_plus_vbuc1 lax a - axs #-$30 + axs #-[$30] stx a //SEG425 [158] (byte) main::i#1 ← ++ (byte) main::i#10 -- vbuz1=_inc_vbuz1 inc i @@ -7360,7 +7360,7 @@ main: { //SEG423 main::@70 //SEG424 [157] (byte) main::a#1 ← (byte) main::a#10 + (byte/signed byte/word/signed word/dword/signed dword) $30 -- vbuz1=vbuz1_plus_vbuc1 lax a - axs #-$30 + axs #-[$30] stx a //SEG425 [158] (byte) main::i#1 ← ++ (byte) main::i#10 -- vbuz1=_inc_vbuz1 inc i