[Top] [All Lists]

simple assembler program

To: <>
Subject: simple assembler program
From: "Roman Mashak" <>
Date: Wed, 21 Jul 2004 14:17:14 +0900
Fl-build: Fidolook 2002 (SL) 6.0.2800.85 - 28/1/2003 19:07:30
Original-recipient: rfc822;

    I tried to compile simple assembler program:

#define a 1
#define b 2

.ent main
.global main
        li $3, a
        li $2, b
        addu $4, $2, $3
.end main

I use SDE-lite kit version 5.03.06 and compile with sde-as:
#sde-as test.S -o testtest.S: Assembler messages:
test.S:9: Error: absolute expression required `li'
test.S:10: Error: absolute expression required `li'

When I eliminate #define and use just 'li $3, 1' and so on - everything is
compiled correctly. Where is my problem?

Thanks in advance!

With best regards, Roman Mashak.  E-mail:

<Prev in Thread] Current Thread [Next in Thread>