Assembler headers

Tony van der Hoff tony at mk-net.demon.co.uk
Wed Jun 18 15:08:21 BST 2003


Hi,

Can someone here please clarify my (lack of) understanding of ARM assembler
string operators?

The problem is this:

In (say) OS.swi, OSLib defines (say) OS_VDUNull = .Char: 0
DefMod translates this correctly to #define os_VDU_NULL (char)0 for C; and (I
think incorrectly) to os_VDUNull * :CHR: &0 for assembler.

As I read it, :CHR: is a string operator, which really has no place here.
OBJASM accepts it, but AS barfs on the null string. I think, in this
instance, AS is correct, which means DefMod needs fixing to just generate
os_VDUNull * &0.

Any comments?

-- 
Tony van der Hoff         | MailTo:tony at mk-net.demon.co.uk
                          | MailTo:avanderhoff at iee.org
Buckinghamshire, England  | http:www.mk-net.demon.co.uk



More information about the oslib-user mailing list