linking imagecraft compiler with assember file

From: fabrizio (fabrizio_dagnolo_at_hotmail.com)
Date: 12/27/03


Date: 27 Dec 2003 11:49:04 -0800

Hi,

I am using the IMAGECRAFT compiler to program the ATMEGA16 device.
I'm trying to write a PC program, using Delphi, to make a monitor that
will be
able to manipulate SRAM memory on the ATMEGA16 device. The PC is
connected
via RS232 to the Device.

For example:
Command entered on the PC : D 0060 10
Meaning: Display 10H Bytes starting from SRAM address 0060H
                            
The PC part of the Job is working 'fine'.
The IMAGECRAFT ANSI C program running on the device is receiving the
command and should start with the Display task.

Here i am stuck.

I can't find an ANSI C instruction that reads out SRAM locations.

I think the way to go is, from the ANSI C program calling an Assembler
procedure, with Address 0060 has a parameter, let the assembler
procedure load the byte located at address 0060, and pass it back the
the ANSI C Program who will send the SRAM-data to the PC application.

Can someone help me with indications on how to interface, and link,
the
IMAGRCRAFT Compiler with Assembler files?

Or, other suggestions to solve my software problem are verry welcome.
 
Kind regards,
Fabrizio,



Relevant Pages