18.07.2013 Views

Series 3000 Application Programmer's Guide

Series 3000 Application Programmer's Guide

Series 3000 Application Programmer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2-4<br />

<strong>Series</strong> <strong>3000</strong> <strong>Application</strong> Programmer’s <strong>Guide</strong><br />

Creating and Downloading a Program<br />

In this section, you will:<br />

compile the program QUICK.C, which prints “Hello, world”<br />

download it to the RAM Disk on the terminal<br />

execute it.<br />

Downloading to the RAM disk is the quickest and simplest way of loading an<br />

application on a <strong>Series</strong> <strong>3000</strong> terminal and is the method commonly used for<br />

testing a program on the terminal.<br />

For the following example, assume that the TDREM.EXE program is resident<br />

in the terminal, either in NVM or on the RAM disk. The default NVM image<br />

includes this program. If this is not the case, refer to NVM Configuration in this<br />

guide to build and download the default image, or use the NVM loading<br />

procedure described later in this chapter.<br />

The following description goes through the complete process of writing,<br />

compiling, downloading, and running a sample program called QUICK.C.<br />

Note: If you prefer, you can substitute your own program<br />

for QUICK.C.<br />

For more detailed information on the remote debugging and downloading<br />

program (TDREM.EXE), the terminal file transfer program (TFT<strong>3000</strong>.EXE), and<br />

the symbol table converter tool (PDCONVRT.EXE) referred to in the following,<br />

see the Utilities chapter in the <strong>Series</strong> <strong>3000</strong> <strong>Application</strong> Programmer’s Reference<br />

Manual.<br />

1. On the development PC, use a text editor to create a simple Microsoft C<br />

source file. You can use your own program or the following program,<br />

which we’ll call QUICK.C:<br />

#include <br />

void main (void)<br />

{<br />

printf(“Hello, world\n”);<br />

}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!