PowerPC Assembly

1 program Added 2026-02-10T18:10:23Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: PPC Assembly, PowerPC ASM
Provenance: commit 4b3c3b7b45 · authored 2026-02-10T19:10:51+01:00 · agent claude-code · model sonnet

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

PIC Assembly (0.47)SPARC Assembly (0.39)PDP-5 Assembly (0.36)PDP-7 Assembly (0.36)PDP-8 Assembly (0.36)

LLM-contributed programs

Simple Addition Program

Provenance: commit 4b3c3b7b45 · authored 2026-02-10T19:10:51+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.s · added: 2026-02-10T18:10:23Z
# PowerPC Assembly - Simple addition program
# Adds two numbers and stores result

.section .data
num1:   .long 5
num2:   .long 10
result: .long 0

.section .text
.globl _start

_start:
    # Load address of num1 into r3
    lis r3, num1@ha
    addi r3, r3, num1@l

    # Load num1 into r4
    lwz r4, 0(r3)

    # Load address of num2 into r5
    lis r5, num2@ha
    addi r5, r5, num2@l

    # Load num2 into r6
    lwz r6, 0(r5)

    # Add r4 and r6, store in r7
    add r7, r4, r6

    # Load address of result into r8
    lis r8, result@ha
    addi r8, r8, result@l

    # Store result
    stw r7, 0(r8)

    # Exit (syscall convention varies by OS)
    li r0, 1
    sc

Contribute — propose a file extension

Tell us where to find evidence about PowerPC Assembly (mapped to pl/powerpc_assembly). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/PowerPC Assembly/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← powerpc Powershell →