Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #429
| From | Martin Wuerthner <spamtrap@mw-software.com> |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: IF THEN ELSE in ObjAsm |
| Date | 2011-06-14 11:46 +0200 |
| Organization | MW Software |
| Message-ID | <f16427e351.martin@bach.planiverse.com> (permalink) |
| References | <5e26bce251.cferris@cferris.freeuk.com> |
In message <5e26bce251.cferris@cferris.freeuk.com>
cferris@freeRemoveuk.com.invalid wrote:
> What is the IF THEN ELSE ENDIF syntax for the Acorn 'ObjAsm'?
> Been trying something like :-
> *********
> Debug_01 * TRUE
> AREA |Asm$$Code|, CODE, READONLY
> .. ;main code
>
> [ Debug_01 = FALSE ;if
> .. ;Code
> | ;else
> .. ;Different Code
> ] ;endif
You would normally do it like that:
GBLL Debug_01
Debug_01 SETL {TRUE}
[ Debug_01
... code for Debug_01 = TRUE ...
|
... code for Debug_01 = FALSE ...
]
There is no need to test for {TRUE} or {FALSE} explicitly, just use
the boolean label itself as the condition.
--
Martin
---------------------------------------------------------------------
Martin Wuerthner MW Software http://www.mw-software.com/
RISC OS Software for Design, Printing and Publishing
---------------------------------------------------------------------
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
IF THEN ELSE in ObjAsm cferris@freeRemoveuk.com.invalid - 2011-06-13 15:15 +0100
Re: IF THEN ELSE in ObjAsm Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-06-13 20:47 +0200
Re: IF THEN ELSE in ObjAsm Martin Wuerthner <spamtrap@mw-software.com> - 2011-06-14 11:46 +0200
Re: IF THEN ELSE in ObjAsm cferris@freeRemoveuk.com.invalid - 2011-06-18 21:53 +0100
csiph-web