Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] the "case" statement

2005-02-21 by Stefan Trethan

On Tue, 22 Feb 2005 00:02:30 +1300, Eric <erichards@clear.net.nz> wrote:

>
> Hi all chat'ers
> In C/C++ there is a "case" statement, is there such a thing in assembly  
> code? and is there a example
> around.

I think you use your variable to jump to different locations.
(add it to the address).
You must make sure you can't jump "out of bounds".
You'll probably make other jumps or calls at each of the possible  
addresses...

Note that my ASM days are a while back and there might well be cleaner  
things to do this.

ST

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.