The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bool
#11
LCD Wrote:
slenkar Wrote:thanks, what is the value of 'address'?
on the line that starts with:poke address
Any address or pointer...
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
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.
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).
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)