Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #429

Re: IF THEN ELSE in ObjAsm

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Martin Wuerthner <spamtrap@mw-software.com>
Newsgroups comp.sys.acorn.programmer
Subject Re: IF THEN ELSE in ObjAsm
Date Tue, 14 Jun 2011 11:46:47 +0200
Organization MW Software
Lines 39
Message-ID <f16427e351.martin@bach.planiverse.com> (permalink)
References <5e26bce251.cferris@cferris.freeuk.com>
X-Trace individual.net 5eHsCyyAgXFULX38AH4Nlg+pyWvpO23cyqCYExzc4B54/BbRsc
X-Orig-Path bach.planiverse.com%martin
Cancel-Lock sha1:w80MK3gpsZOIRQliWDXzbIm3qt0=
X-Editor EmailEdit 6.00
User-Agent Messenger-Pro/6.00 (MsgServe/6.00) (RISC-OS/5.16) NewsHound/v1.50-32
Xref x330-a1.tempe.blueboxinc.net comp.sys.acorn.programmer:429

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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