Yes, you were absolutely right, what a stupid mistake I made there. I renamed all the variables to make them less confusing and replaced the part you pointed out with B1B2(...). This time I didn't replace the registers greater than 8 Bits which aren't used in the DSDT. Still, I have the same issue: 0% charge is shown all the time.
It would be awesome if you could point me in the right direction here. And yeah since I couldn't find information about the Cube i7 Book on the internet, a lot of stuff isn't working yet. I wanted to start adding the battery status first so it would be somewhat good for working even without sound etc.
Thanks in advance,
kim