08-07-2012, 09:40 AM
LCD Wrote:In fact, FreeBASIC implements them as Macros. You can also implement them as macros using #define as explained above (I've updated ZX Basic operator priorities to reflect FreeBasic's ones, but you can always enforce priorities using parenthesis; this won't affect performance).slenkar Wrote:thanks, what is the value of 'address'?Any address or pointer...
on the line that starts with:poke address
Boriel also wanted to add SETBIT, RESETBIT and TESTBIT commands, but existing binary operations are good enough because you can manipulate multiple bits at once.Code:poke @booltable+1,(peek booltable+1)|(switch4<<4) 'use second bytes 4 th bit
end
booltable:
asm
defb 0,0,0,0,0,0,0,0 ;8 bytes=64 bool bits
end asm