A89: Re: print_d0 problems


[Prev][Next][Index][Thread]

A89: Re: print_d0 problems




My guess is that the macro you took only accepts byte values and not your
word.

-Miles Raymond      EML: m_rayman@bigfoot.com
ICQ: 13217756       IRC: Killer2        AIM: MRayMan
http://www.bigfoot.com/~m_rayman/

-----Original Message-----
From: Ahmed El-Helw <ahmed@ticalc.org>
To: assembly-89@lists.ticalc.org <assembly-89@lists.ticalc.org>
Date: Saturday, January 30, 1999 7:01 PM
Subject: A89: print_d0 problems


>Hello,
>    I have a program I am working on .. and i put this macro in.. from
>Tunnel by Albain Gr.
>
>Print_D0 MACRO
> bsr print_value
> move.w  \3,-(a7)
> move.l  a0,-(a7)
> move.w  \2,-(a7)
> move.w  \1,-(a7)
> jsr     doorsos::DrawStrXY
> lea 10(a7),a7
> ENDM
>
>print_value:
> move.l #str+8,a0
> clr.b (a0)
> clr.l d1
>print_loop:
> add.l #1,d1
> divu #10,d0
> swap d0
> add.b #48,d0
> move.b d0,-(a0)
> clr.w d0
> swap d0
> tst.w d0
> bne print_loop
> rts
>
>str         ds.b 9
>
>but then i have a variable,
>blah dc.w 1999
>
>yet this doesn't compile.. it freezes at object2asm program..
>
> move.w year,d0
> Print_D0 #0,#0,#1
>
>if i remove print_d0 #0,#0,#1, it will compile..
>i am compiling under doors... any help would be appreciated,
>
>Ahmed El-Helw <ahmed@ticalc.org>
>   Program Ideas and Upcoming Programs
>   the ticalc.org project - http://www.ticalc.org/
>_______________________________________
>http://hail.icestorm.com/asm/
>ICQ: 3350394
>________________________________________________________
>NetZero - We believe in a FREE Internet.  Shouldn't you?
>Get your FREE Internet Access and Email at
>http://www.netzero.net/download.html