Skip to content

Commit f590245

Browse files
Add some drawing related syscalls and reformat includes
Co-Authored-By: RoccoLox Programs <[email protected]>
1 parent ac50927 commit f590245

File tree

17 files changed

+218
-11
lines changed

17 files changed

+218
-11
lines changed

archetypes/hooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: Hook name
2+
title: {{ .File.ContentBaseName }}
33
geekdocHidden: true
44
params:
5-
name: Hook name
5+
name: {{ .File.ContentBaseName }}
66
---
77

88
BRIEF overview of what the hook does / is used for

archetypes/memory.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: Memory area name
2+
title: {{ .File.ContentBaseName }}
33
geekdocHidden: true
44
params:
55
address: Memory address
6-
name: Memory area name
6+
name: {{ .File.ContentBaseName }}
77
---
88

99
Overview of what the memory area does / is used for
254 Bytes
Loading

content/basics/your-first-program.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ project // The main folder for your project
2121
└── readme // A file explaining what your program does and how to use it (optional)
2222
```
2323

24-
We'll start by downloading the include files. These contain system calls and other equates you'll use in your programs. Make a folder called `include` in your project folder and download the five include files for fasmg made by [jacobly](https://github.com/jacobly0), which you can get in a zip [here](https://github.com/EzCE/ez80-docs/raw/main/assets/include.zip). Extract all five of these files into the folder you previously created called `include`.
24+
We'll start by downloading the include files. These contain system calls and other equates you'll use in your programs. Make a folder called `include` in your project folder and download the necessary include files for fasmg, which you can find [here](../../other/includes). Extract all five of these files into the folder you previously created called `include`.
2525

2626
## Writing the Program
2727

content/memory/all/fillRectColor.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: fillRectColor
3+
geekdocHidden: true
4+
params:
5+
address: $D02AC0
6+
name: fillRectColor
7+
---
8+
9+
Stores the current RGB 565 color for use with filled rectangle routines. See also [FillRect](../../../syscalls/all/FillRect), [HighlightRect](../../../syscalls/all/HighlightRect).
10+
11+
### Address: $D02AC0
12+
13+
### Size: 2 bytes

content/other/includes/_index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: Includes
3+
weight: -20
4+
---
5+
6+
A number of community-provided include files for use with fasmg are available:
7+
8+
{{% list "other/includes/" %}}
9+
10+
### See also:
11+
* [ti84pceg.inc on WikiTI](https://wikiti.brandonw.net/index.php?title=84PCE:OS:Include_File)
12+
* [asm-docs includes](https://github.com/CE-Programming/asm-docs/tree/master/programs/include)

content/other/includes/ez80.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: ez80.inc
3+
geekdocHidden: true
4+
params:
5+
name: ez80.inc
6+
---
7+
8+
<a href="https://raw.githubusercontent.com/EzCE/ez80-docs/refs/heads/main/assets/include/ez80.inc" target="_blank">Download{{< icon "gdoc_download" >}}</a>
9+
10+
{{< include file="assets/include/ez80.inc" language="plain" >}}

content/other/includes/ti84pceg.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: ti84pceg.inc
3+
geekdocHidden: true
4+
params:
5+
name: ti84pceg.inc
6+
---
7+
8+
<a href="https://raw.githubusercontent.com/EzCE/ez80-docs/refs/heads/main/assets/include/ti84pceg.inc" target="_blank">Download{{< icon "gdoc_download" >}}</a>
9+
10+
{{< include file="assets/include/ti84pceg.inc" language="plain" >}}

content/other/includes/tiformat.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: tiformat.inc
3+
geekdocHidden: true
4+
params:
5+
name: tiformat.inc
6+
---
7+
8+
<a href="https://raw.githubusercontent.com/EzCE/ez80-docs/refs/heads/main/assets/include/tiformat.inc" target="_blank">Download{{< icon "gdoc_download" >}}</a>
9+
10+
{{< include file="assets/include/tiformat.inc" language="plain" >}}

content/syscalls/all/ClearRect.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: ClearRect
3+
geekdocHidden: true
4+
params:
5+
address: $021218
6+
category: Graphics
7+
name: ClearRect
8+
---
9+
10+
Draws a solid white filled rectangle to the screen.
11+
12+
This call behaves the same as:
13+
```plain
14+
push hl
15+
ld.sis hl, $FFFF
16+
ld.sis (fillRectColor), hl
17+
pop hl
18+
call FillRect
19+
```
20+
21+
### Address: $021218
22+
23+
### Inputs:
24+
* `hl`: Top-left X coordinate of the rectangle.
25+
* `de`: Bottom-right X coordinate of the rectangle.
26+
* `b`: Top-left Y coordinate of the rectangle.
27+
* `c`: Bottom-right Y coordinate of the rectangle.
28+
29+
### Outputs:
30+
* Value at [`fillRectColor`](../../../memory/all/fillRectColor) is loaded with `$FFFF`.
31+
* Draws to screen.
32+
33+
### Destroys:
34+
* `af`

0 commit comments

Comments
 (0)