writing-assembly

Assemble ARM code from the s/ directory with objasm and link with riscos-link.

3|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/gerph/riscos-agent-skills --skill writing-assembly
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-assembly
Source: https://github.com/gerph/riscos-agent-skills/tree/main/skills/writing-assembly
Command: npx skills add https://github.com/gerph/riscos-agent-skills --skill writing-assembly

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines ARM assembly development for RISC OS using ObjAsm and riscos-link. This guide helps developers write correct assembly, apply essential directives, and produce working executables for RISC OS targets.

Core Features & Use Cases

  • Source layout: assembly source files live in an s/ directory with explicit syntax rules and required directives.
  • Build process: assemble to object files with objasm, then link to an executable with riscos-link, including the option to produce raw binaries when needed.
  • Use case: develop low-level OS components, drivers, or performance-critical routines for RISC OS on ARM.

Quick Start

Assemble ARM code from the s/ directory with objasm and link with riscos-link to generate a runnable binary.

Frequently Asked Questions about writing-assembly

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build ARM assembly for RISC OS using objasm?

To build ARM assembly for RISC OS, assemble source files from the s/ directory into object files using objasm, then link them into a runnable executable with riscos-link. This process can also output raw binaries when needed.

What is the required source layout for RISC OS ARM assembly projects?

RISC OS ARM assembly projects require source files to be placed in an s/ directory. This layout ensures that the objasm assembler and riscos-link can correctly locate and process the assembly code with its explicit syntax rules and required directives.

Can I use riscos-link to produce raw binaries from ARM assembly?

Yes, riscos-link can produce raw binaries from ARM assembly. After assembling your source files with objasm into object files, the linking step includes options to generate either standard executables or raw binary outputs for RISC OS targets.

When do I need ARM assembly for RISC OS development?

ARM assembly for RISC OS is needed when developing low-level OS components, hardware drivers, or performance-critical routines. Writing assembly with objasm allows direct control over ARM hardware and optimal execution for these specialized system-level tasks.

Does this assembly workflow support all RISC OS environments?

The objasm and riscos-link workflow applies to projects across RISC OS environments on ARM architecture. It streamlines development for low-level OS components and drivers by enforcing correct syntax and proper linking steps for these targets.

What directives are required for objasm assembly in RISC OS?

Objasm requires explicit syntax rules and specific directives within the assembly source files. Following these required directives ensures the assembler correctly processes the ARM code and produces valid object files for the subsequent riscos-link stage.