ref: cd107855e7b705b6677afa0777a19c55849743e5
parent: ab9307ac617c6abc2e8cb055656842a71e38541e
author: ISSOtm <eldredhabert0@gmail.com>
date: Thu Jan 23 22:03:18 EST 2020
Test new working label subtractions
--- a/test/asm/label-diff.asm
+++ b/test/asm/label-diff.asm
@@ -27,7 +27,7 @@
; TODO: uncomment all that can be, there is seriously room for improvement here
; Diffing two constants should work
-; But it doesn't yet print_diff Constant, Constant2
+ print_diff Constant, Constant2
; Diffing two labels in the same SECTION as well
print_diff Known2, Known
; Diffing a constant and a "floating" label cannot work
@@ -40,7 +40,7 @@
; Now let's fiddle with PC
SECTION "fixed PC", ROM0[420]
; Diffing a constant and PC should work
-; But it doesn't yet print_diff Constant, @
+ print_diff Constant, @
; Diffing a floating label and PC cannot work
; ...And that causes a fatal error print_diff Known, @
; Diffinf a ref and PC cannot work
@@ -49,7 +49,7 @@
print_diff @, @
; Diffing PC and a label from here should work
LocalFixed:
-; But it doesn't yet print_diff LocalFixed, @
+ print_diff LocalFixed, @
SECTION "Floating PC", ROM0
; Diffing a constant and PC cannot work
--- a/test/asm/label-diff.out
+++ b/test/asm/label-diff.out
@@ -1,5 +1,11 @@
+$FFFFFFE5
+$1B
$4
$FFFFFFFC
+$FFFFFE86
+$17A
+$0
+$0
$0
$0
$0