Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail NNTP-Posting-Date: Tue, 24 Jul 2012 08:03:54 -0500 Date: Tue, 24 Jul 2012 14:02:18 +0100 From: Gavin Wraith Newsgroups: comp.sys.acorn.programmer Subject: Re: Assembler Help. Message-ID: <8aaf4eb452.wra1th@wra1th.plus.com> References: <52ad2f569bchrisjohnson+news@spamcop.net> <7de0c570-88de-4854-a8b4-a84667ba8875@a16g2000vby.googlegroups.com> <00b34021-c874-4533-b2ad-9524c021663a@fr28g2000vbb.googlegroups.com> Organization: Home User-Agent: Messenger-Pro/1.00c (MsgServe/1.00a) (RISC-OS/5.18) NewsHound/v1.50-32 Lines: 20 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-LcCnZ7ivmjUe6U1ECwYy+s/flyoeEVoUUMOk6e+n69n8a8qmOtYwfFANQj/0Mwjb+9HhEHn5v25wgQ3!lFDvZ3nCcRFV3FpCyn2zltVWe2b9HVDxjh4l47O1FSUpxDJhYmU4LlZEOZlDaXCs0XdEZyWlgKKE!kp98 X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2108 Xref: csiph.com comp.sys.acorn.programmer:1946 In message <00b34021-c874-4533-b2ad-9524c021663a@fr28g2000vbb.googlegroups.com> Gazza wrote: > The first, LibASH creates a heap from HIMEM. This obviously won't work > as is for a stand-alone executable. Is there an easy way to find out > the equivalent, so I can install a heap at the top of the user's > WimpSlot without having the calling program having to hard-wire a > value on compile time. Use SWI "OS_GetEnv" ? > The second, I need an equivalent of BASIC's MOD in asm. DIVMOD appears to be everybody's favourite macro. There is one on page 148 of Acorn Assembler Release 2, and no doubt there are others. -- Gavin Wraith (gavin@wra1th.plus.com) Home page: http://www.wra1th.plus.com/