What I'm looking to accomplish here is a bit of a hack to the v-usb project. Normally the assembly will return on interrupt. I need to make it return regardless if the interrupt bit is not set. The test here is to see if the driver will return and send NAK instead of doing nothing when the interrupt is disabled. Note: before disabling interrupts I run the busy command that will return NAK. So if this works, it should return from this code and then return NAK as it was told to. normal code
sofError: POP_RETI ;macro call RETI
test code sofError: POP_RETI ;macro call brne EIMSK >> 2;if not set branch (int0 is pd2 on my chip) RETI;was set RET;was not
Will assembly do a bit wise calculation like that or do I need to use the OP commands and put it in a register.