i think MOD would be the appropriate operator.
I think the general AND / OR functions may have been removed as there is a conflict with the BASIC functions AND / OR.
SHL / SHR is still available while SHR wouldn't help to get the lower 8 bits.
Here are some examples:
Code: Select all
org $4000
0000: [4000] FF db $FF
test:
0001: [4001] 01 40 dw test
0003: [4003] 40 db test/256
0004: [4004] 40 db test shr 8
0005: [4005] 01 db test mod 256