title: Chess Engine - Represent bitboard in 32bit Nasm
body: <p>I'm trying to write a chess engine in 32bit nasm. I read up on bit boards and I want to represent the board using bit boards, however the fact i'm working with 32bit registers is an inconvenience. What I did is divide each bit board into 32bit sections. But would it be better to just define qWords and split them up on the fly?</p>
  
  <p>This is my board data section</p>
  
  <pre class="lang-asm prettyprint-override"><code>                    ;bitboards for white
      whiteLowerPawns     dd  0xff00
      whiteLowerBishops   dd  0x24
      whiteLowerKnights   dd  0x42
      whiteLowerCastles   dd  0x81
      whiteLowerQueens    dd  0x8
      whiteLowerKing      dd  0x10
  
      whiteUpperPawns     dd  0x0
      whiteUpperBishops   dd  0x0
      whiteUpperKnights   dd  0x0
      whiteUpperCastles   dd  0x0
      WhiteUpperQueens    dd  0x0
      WhiteUpperKing      dd  0x0
  
                      ;bitboards for black
      blackUpperPawns     dd  0xff0000
      blackUpperBishops   dd  0x24000000
      blackUpperKnights   dd  0x42000000
      blackUpperCastles   dd  0x81000000
      blackUpperQueens    dd  0x8000000
      blackUpperKing      dd  0x10000000
  
      blackLowerPawns     dd  0x0
      blackLowerBishops   dd  0x0
      blackLowerKnights   dd  0x0
      blackLowerCastles   dd  0x0
      blackLowerQueens    dd  0x0
      blackLowerKing      dd  0x0
  </code></pre>