# Hello World

To start off let's do something super simple, and print some text on the screen on the PC Engine.

This is the minimum code needed to print text on the screen.

```c
#include <huc.h>

void main(void)
{
    put_string("HELLO WORLD", 1, 1);
    put_string("This is the PC Engine!", 1, 2);
}
```

This example uses the HuCC `put_string` text function to display text inside a main function loop.

`put_string( unsigned char *string, unsigned char bat_x, unsigned char bat_y );`&#x20;

This writes a null terminated ASCII string, with the x and y coordinates in `Tiles`.

After running `make` and loading `game.pce` in the emulator, this is what you should see:

<figure><img src="https://815216678-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHeA6Nre5SYr3IFC4PPgw%2Fuploads%2FYK7IIdaxoSqa4V6rL0YY%2Foutput_image.png?alt=media&#x26;token=eace155c-75d0-42d2-9d94-f2492c0ae77e" alt=""><figcaption></figcaption></figure>

This is now showing two lines of text being written in the default system font.

{% hint style="info" %}
By default if a text colour is not defined, the colour of the text will appear as cyan.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aeriform.gitbook.io/hucc/getting-started/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
