A89: Re: On-Calc ASM?


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

A89: Re: On-Calc ASM?



Your error is not in the compiler, but in your code. The syntax for util::pixel_on is not very well documented, but upon inspection of the routine itself, heres the syntax:
 
void pixel_on(int y, int x)
 
meaning, your code should be changed to this:
 
 include equutil
 
_main:
 jsr util::clr_scr
 move.w #5,-(a7)
 move.w #5,-(a7)
 jsr util::pixel_on
 lea 4(a7),a7
 jsr util::idle_loop
 rts
 
 
    Andrew
 
----- Original Message -----
From: ?
To: assembly-89@lists.ticalc.org
Sent: Thursday, April 20, 2000 4:37 PM
Subject: A89: On-Calc ASM?

I downloaded the on calculator Assembler (AS92) and it seems like a great thing, but has anyone actually gotten programs to work when assembling using it?
 
I can get lib-calls to work such as "util::clr_scr" and "util::idle_loop", but whenever I try to put an absolute value into a data register ("move.w #10,d0" in A68K) it seems to never work;  I tried the following code and no pixel is ever drawn (although everything else works):
 
; Code begins
 include equutil
 
_main:
 jsr util::clr_scr
 move.w #5,d0
 move.w #5,d1
 jsr util::pixel_on
 jsr util::idle_loop
 rts
 
 end
 
 
The program runs fine, except the pixel is never turned on.  I've tried using "#5", "5", "%5", & "%101" as in A68K, but nothing works.  My distribution didn't come with any examples and I can't find documentation on this part anywhere.
 
I do have a HW2 calc with AMS2.03 and the latest version of doors and all the libs.  Also, I know that you don't need the "xdef" statements (is there an equivalent to use?) because it complains when I have them, and runs without.
 
Plenty of Appreciation
--Yellofish

References: