writing-pascal
Skill4 starsChanged 8 months agoMITView on GitHub
Use when writing, reading, updating, building, or reviewing Pascal code in the RISC OS build environment, especially when compiling with riscos-p2cc/riscos64-p2cc, creating a pcommand project with riscos-project, or building for 32-bit and 64-bit RISC OS.
In this repository47 other files it gives its agents.
- allocating-resourcesSkill
- ci-testingSkill
- creating-pull-requestsSkill
- designing-modulesSkill
- porting-to-riscos-cSkill
- reading-assemblySkill
- riscos-commandsSkill
- riscos-desktop-fileractionSkill
- riscos-filer-likeSkill
- riscos-filesystemSkill
- riscos-graphics-convertersSkill
- riscos-network-dcistatisticsSkill
- riscos-network-resolverSkill
- riscos-outputSkill
- riscos-reSkill
- riscos-styleSkill
- riscos-throwbackSkill
- riscos-urls-fetchingSkill
- riscos-urls-launchingSkill
- riscos-wimp-appSkill
- riscos-wimpSkill
- riscos-wimp-templatesSkill
- updating-robe-skillsSkill
- using-bbcbasicSkill
- using-cmhgSkill
- using-ghSkill
- using-gitSkill
- using-libasmSkill
- using-libgcontextSkill
- using-liboslibSkill
- using-libriscoslibSkill
- using-libtoolboxSkill
- using-makefilesSkill
- using-perlSkill
- using-stronghelpSkill
- using-toolbox-imagefilegadgetSkill
- using-tooltesterSkill
- writing-assemblySkill
- writing-assembly-testsSkill
- writing-cmodulesSkill
- writing-cplusplusSkill
- writing-cSkill
- writing-fortranSkill
- writing-oslib-defsSkill
- writing-prminxmlSkill
- writing-pymodulesSkill
- writing-pyromaniac-integration-testsSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use this skill for Pascal work in the RISC OS build environment.
- Distinctive: line 14
Read only the reference files needed for the task:
- Very specific: line 31
Always pass -26, -32, or -64 explicitly.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Writing Pascal for RISC OS
Use this skill for Pascal work in the RISC OS build environment.
Read only the reference files needed for the task:
- Build, source layout, and command lines (32-bit and 64-bit, direct and
project builds):
references/building.md - Common pitfalls, language quirks, and review checks:
references/pitfalls.md
Core Rules
Pascal source is translated to ANSI C by the P2C translator, then compiled
and linked with the normal C toolchain. riscos-p2cc (32-bit and 26-bit) and
riscos64-p2cc (64-bit) drive translation, compilation, and linking
together.
Pascal source files live in p/. Unlike the C, C++, and Fortran wrappers,
riscos-p2cc takes the host path directly, so pass p/hello, not p.hello
or hello.p.
Always pass -26, -32, or -64 explicitly. Without one, riscos-p2cc
defaults to 26-bit code, which fails at run time with
26 bit absolute files are not executable on this system on a 32-bit or
64-bit system.
The o/ directory must exist before compiling with a 32-bit target, even
for a combined translate-compile-link command; the 32-bit compiler writes an
intermediate object there. The 64-bit compiler does not need this.
Do not print a real value with write/writeln in a 32-bit build.
This currently produces incorrect output (0.0, or garbage for an
unformatted writeln) due to a variadic-double calling-convention bug in
the 32-bit toolchain. real arithmetic and comparisons are unaffected, and
64-bit builds print real values correctly. If a 32-bit program must show a
computed value, convert with trunc/round to an integer, or target 64-bit.
To create a project: riscos-project create --type pcommand --name <name>
--skeleton, then riscos-amu for 32-bit or riscos-amu BUILD64=1 for
64-bit.
Assignment is :=, comparison is =. Boolean operators are the words
and, or, not. Array bounds are declared explicitly (eg
array[1..3] of integer), not fixed at a language-defined start index.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

