added unary ^ and << operators (experimental) (gets bank and address of a long integer)

This commit is contained in:
Irmen de Jong
2024-11-24 03:07:18 +01:00
parent d77b1944fb
commit cb86206698
10 changed files with 54 additions and 6 deletions

View File

@@ -1,9 +1,11 @@
TODO
====
what to do with bnk(): it's an awkward name but bank() is too general a name and will forbid you to use 'bank' as a variable...
what to do with bankof(): keep it? add another syntax like \`value or ^value to get the bank byte?
add a function like addr() or lsw() to complement bnk() in getting easy access to the lower 16 bits of a long integer?
-> added unary ^ operator as alternative to bankof()
-> added unary << operator as alternative to addr() / lsb(x>>16) / lsw()
-> TODO document whatever remains of those!
...