Register not getting set

I have the sample KEIL USB HID project for the LPC2148 and I have a project I started in which I am going through the KEIL code section by section attempting to thouroughly understand its function and tune the code for my needs.

In the KEIl project it runs this line of code fine, but in mine it freezes:

while((USBDevIntSt & 0x00000100) == 0);

Thanks for any help in advance!
Wesley

More questions in this forum