Hello,
I'm developing a CHIP-8 emulator in B4J.
I'm using hexadecimal opcodes in a Select Case, for example:
The problem:
The IDE automatically transforms &H9E into &h9e,
and then the compiler gives me:
Undeclared variable 'h9e'
Undeclared variable 'ha1'
I can't find any option in B4J to disable automatic case correction.
My question:
What is the correct syntax for using hexadecimal values in a B4J Case, without the IDE transforming them and without causing an error?
I would like to know if:
&H9E is officially supported in a Case statement
the IDE should normally change the case or not
there is a recommended syntax for opcodes (hex, decimal, other)
Thank you in advance for your help.
I'm developing a CHIP-8 emulator in B4J.
I'm using hexadecimal opcodes in a Select Case, for example:
Example:
Select Case Bit.And(opcode, 0xF000)
Case 0xE000
Select Bit.And(opcode, 0x00FF)
Case &H9E
Case &HA1
End Select
End Select
The problem:
The IDE automatically transforms &H9E into &h9e,
and then the compiler gives me:
Undeclared variable 'h9e'
Undeclared variable 'ha1'
I can't find any option in B4J to disable automatic case correction.
My question:
What is the correct syntax for using hexadecimal values in a B4J Case, without the IDE transforming them and without causing an error?
I would like to know if:
&H9E is officially supported in a Case statement
the IDE should normally change the case or not
there is a recommended syntax for opcodes (hex, decimal, other)
Thank you in advance for your help.