} else if(!size && t >= 0 && t < 8)
count++; } else if(!size && t >= 0 && t < 8) {
void gbDrawSprites(){  int x =0;  int y =0;    int size = (register_LCDC & 4);  if(!(register_LCDC & 0x80))    return;    if((register_LCDC & 2) && (layerSettings & 0x1000)) {    int yc = register_LY;          int address = 0xfe00;    for(int i = 0; i < 40; i++) {      y = gbMemory[address++];      x = gbMemory[address++];      int tile = gbMemory[address++];      if(size)        tile &= 254;      int flags = gbMemory[address++];      if(x > 0 && y > 0 && x < 168 && y < 160) {        // check if sprite intersects current line        int t = yc -y + 16;        if(size && t >=0 && t < 16) {          gbDrawSpriteTile(tile,x-8,yc,t,flags,size,i);        } else if(!size && t >= 0 && t < 8)          gbDrawSpriteTile(tile, x-8, yc, t, flags,size,i);      }    }     }}