Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/20/01 07:46
Read: times


 
#17849 - RE: case statement using assy
Spencer,

Are you saying you want to implement in assembler a 'C' type switch construct (which uses 'case') ?

C compilers produce code in two different ways--depending on the sparseness of the case values and the compile optimization settings. For fast speed and sometimes at a space loss, a jump table is used where the switch'ed value is simply an index into the jump table. The other method, is simply doing a linear test for each of the case values untill a match is found. This would use the cjne as you have mentioned.

<>< Lance.


List of 9 messages in thread
TopicAuthorDate
case statement using assy            01/01/70 00:00      
RE: case statement using assy            01/01/70 00:00      
RE: case statement using assy            01/01/70 00:00      
RE: case statement using assy            01/01/70 00:00      
RE: case statement using assy            01/01/70 00:00      
RE: case statement using assy            01/01/70 00:00      
RE: case statement using assy - spencer            01/01/70 00:00      
RE: case statement using assy            01/01/70 00:00      
RE: case statement using assy            01/01/70 00:00      

Back to Subject List