Allow binary AND to be sometimes constant (#976)

This commit is contained in:
Eldred Habert
2022-02-05 20:17:57 +01:00
committed by GitHub
parent 6b903059fe
commit 6842c831fd
7 changed files with 84 additions and 11 deletions

View File

@@ -1,11 +1,9 @@
SECTION "test", ROM0
ds 123
FloatingBase:
assert WARN, FloatingBase & 0, "Worry about me, but not too much."
assert FAIL, FloatingBase & 0, "Okay, this is getting serious!"
assert FATAL, FloatingBase & 0, "It all ends now."
assert FAIL, FloatingBase & 0, "Not even time to roll credits!"
assert WARN, FloatingBase, "Worry about me, but not too much."
assert FAIL, FloatingBase, "Okay, this is getting serious!"
assert FATAL, FloatingBase, "It all ends now."
assert FAIL, FloatingBase, "Not even time to roll credits!"
assert WARN, 0, "Still can finish the film, though!"

View File

@@ -1,4 +1,4 @@
warning: assert.asm(7): Worry about me, but not too much.
error: assert.asm(8): Okay, this is getting serious!
FATAL: assert.asm(9): It all ends now.
warning: assert.asm(5): Worry about me, but not too much.
error: assert.asm(6): Okay, this is getting serious!
FATAL: assert.asm(7): It all ends now.
Linking aborted after 2 errors