mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-25 12:32:07 +00:00
Add more RGBLINK tests (#1386)
This commit is contained in:
29
test/link/operators.asm
Normal file
29
test/link/operators.asm
Normal file
@@ -0,0 +1,29 @@
|
||||
SECTION "test", ROM0
|
||||
ds 4
|
||||
|
||||
dw @ + 1
|
||||
dw @ - 1
|
||||
dw @ * 2
|
||||
dw @ / 2
|
||||
dw @ % 2
|
||||
dw -@
|
||||
dw @ ** 2
|
||||
|
||||
dw @ | %10101010
|
||||
dw @ & %10101010
|
||||
dw @ ^ %10101010
|
||||
dw ~@
|
||||
|
||||
db @ && @
|
||||
db @ || @
|
||||
db !@
|
||||
db @ == 7
|
||||
db @ != 7
|
||||
db @ > 7
|
||||
db @ < 7
|
||||
db @ >= 7
|
||||
db @ <= 7
|
||||
|
||||
dw @ << 1
|
||||
dw @ >> 1
|
||||
dw @ >>> 1
|
||||
Reference in New Issue
Block a user