C64 Meatloaf Debug
idolpx/meatloaf
Debug Commodore 64 BASIC programs, cc65-compiled C PRGs, and Meatloaf ESP32 firmware in tandem, using the Ultimate 64's REST API and Meatloaf's UART serial debug output.
Guides reading and writing AArch64 and ARM Thumb assembly: compiler output, inline asm, registers, the AAPCS calling convention and NEON or SVE basics.
$ npx skills add mohitmishra786/low-level-dev-skills --skill assembly-arm -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install mohitmishra786/low-level-dev-skills assembly-arm --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/low-level-programming/assembly-arm .claude/skills/assembly-arm && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "assembly-arm" agent skill from https://github.com/mohitmishra786/low-level-dev-skills/tree/main/skills/low-level-programming/assembly-arm into .claude/skills/assembly-arm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "assembly-arm", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/mohitmishra786/low-level-dev-skills/tree/main/skills/low-level-programming/assembly-armType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add mohitmishra786/low-level-dev-skills --skill assembly-arm -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install mohitmishra786/low-level-dev-skills assembly-arm --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/low-level-programming/assembly-arm .agents/skills/assembly-arm && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "assembly-arm" agent skill from https://github.com/mohitmishra786/low-level-dev-skills/tree/main/skills/low-level-programming/assembly-arm into .agents/skills/assembly-arm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "assembly-arm", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mohitmishra786/low-level-dev-skills --skill assembly-arm -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install mohitmishra786/low-level-dev-skills assembly-arm --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/low-level-programming/assembly-arm .cursor/skills/assembly-arm && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "assembly-arm" agent skill from https://github.com/mohitmishra786/low-level-dev-skills/tree/main/skills/low-level-programming/assembly-arm into .cursor/skills/assembly-arm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "assembly-arm", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/mohitmishra786/low-level-dev-skills.git --path skills/low-level-programming/assembly-arm--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add mohitmishra786/low-level-dev-skills --skill assembly-arm -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install mohitmishra786/low-level-dev-skills assembly-arm --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/low-level-programming/assembly-arm .gemini/skills/assembly-arm && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "assembly-arm" agent skill from https://github.com/mohitmishra786/low-level-dev-skills/tree/main/skills/low-level-programming/assembly-arm into .gemini/skills/assembly-arm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "assembly-arm", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install mohitmishra786/low-level-dev-skills assembly-armInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add mohitmishra786/low-level-dev-skills --skill assembly-arm -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/low-level-programming/assembly-arm .github/skills/assembly-arm && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "assembly-arm" agent skill from https://github.com/mohitmishra786/low-level-dev-skills/tree/main/skills/low-level-programming/assembly-arm into .github/skills/assembly-arm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "assembly-arm", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mohitmishra786/low-level-dev-skills --skill assembly-arm -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install mohitmishra786/low-level-dev-skills assembly-arm --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/low-level-programming/assembly-arm .opencode/skills/assembly-arm && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "assembly-arm" agent skill from https://github.com/mohitmishra786/low-level-dev-skills/tree/main/skills/low-level-programming/assembly-arm into .opencode/skills/assembly-arm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "assembly-arm", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
assembly-armGuides reading and writing AArch64 and ARM Thumb assembly: compiler output, inline asm, registers, the AAPCS calling convention and NEON or SVE basics.
An agent is guided through AArch64 and 32-bit ARM Thumb assembly: reading compiler output, writing inline asm in C or C++ and understanding the ARM calling conventions AAPCS64 and AAPCS. It also covers debugging register and stack state on ARM hardware or QEMU.
The workflow shows how to generate assembly with a cross-compiler such as aarch64-linux-gnu-gcc -S, lists the AArch64 register set with roles, aliases and width variants, and summarizes the AAPCS64 rules: arguments in x0 to x7, SIMD arguments in v0 to v7, the callee-saved ranges and a stack that must be 16-byte aligned at calls. A table of common instructions explains moves, loads and stores, pair loads and arithmetic, and NEON and SVE SIMD patterns are included. A references/reference.md file holds more detail.
11 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit bdc5847. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are c, bash and asm).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
ARM and AArch64 Assembly loads about 1.9k tokens when it runs, and up to ~3.3k if it reads all its reference files. Until then it costs about 108 tokens; SKILL.md has 619 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from mohitmishra786/low-level-dev-skills at commit bdc5847, republished under its MIT licence (© mohitmishra786). 619 words, ~1,910 tokens.
.claude/skills/assembly-arm/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Guide agents through AArch64 (64-bit) and ARM (32-bit Thumb) assembly: registers, calling conventions, inline asm, and NEON/SVE SIMD patterns.
# AArch64 (native or cross-compile)
aarch64-linux-gnu-gcc -S -O2 foo.c -o foo.s
# 32-bit ARM Thumb
arm-linux-gnueabihf-gcc -S -O2 -mthumb foo.c -o foo.s
# From objdump
aarch64-linux-gnu-objdump -d -S prog
# From GDB on target
(gdb) disassemble /s main| Register | Alias | Role |
|---|---|---|
x0–x7 | — | Arguments 1–8 and return values |
x8 | xr | Indirect result location (struct return) |
x9–x15 | — | Caller-saved temporaries |
x16–x17 | ip0, ip1 | Intra-procedure-call temporaries (used by linker) |
x18 | pr | Platform register (reserved on some OS) |
x19–x28 | — | Callee-saved |
x29 | fp | Frame pointer (callee-saved) |
x30 | lr | Link register (return address) |
sp | — | Stack pointer (must be 16-byte aligned at call) |
pc | — | Program counter (not directly accessible) |
xzr | wzr | Zero register (reads as 0, writes discarded) |
v0–v7 | q0–q7 | FP/SIMD args and return |
v8–v15 | — | Callee-saved SIMD (lower 64 bits only) |
v16–v31 | — | Caller-saved temporaries |
Width variants: x0 (64-bit), w0 (32-bit, zero-extends to 64), h0 (16), b0 (8).
Integer/pointer args: x0–x7
Float/SIMD args: v0–v7
Return: x0 (int), x0+x1 (128-bit), v0 (float/SIMD)
Callee-saved: x19–x28, x29 (fp), x30 (lr), v8–v15 (lower 64 bits)
Caller-saved: everything else
Stack must be 16-byte aligned at any bl or blr instruction.
| Instruction | Effect |
|---|---|
mov x0, x1 | Copy register |
mov x0, #42 | Load immediate |
movz x0, #0x1234, lsl #16 | Move zero-extended with shift |
movk x0, #0xabcd | Move with keep (partial update) |
ldr x0, [x1] | Load 64-bit from address in x1 |
ldr x0, [x1, #8] | Load from x1+8 |
str x0, [x1, #8] | Store x0 to x1+8 |
ldp x0, x1, [sp, #16] | Load pair (two regs at once) |
stp x29, x30, [sp, #-16]! | Store pair, pre-decrement sp |
add x0, x1, x2 | x0 = x1 + x2 |
add x0, x1, #8 | x0 = x1 + 8 |
sub x0, x1, x2 | x0 = x1 - x2 |
mul x0, x1, x2 | x0 = x1 * x2 |
sdiv x0, x1, x2 | Signed divide |
udiv x0, x1, x2 | Unsigned divide |
cmp x0, x1 | Set flags for x0 - x1 |
cbz x0, label | Branch if x0 == 0 |
cbnz x0, label | Branch if x0 != 0 |
bl func | Branch with link (call) |
blr x0 | Branch with link to address in x0 |
ret | Return (branch to x30) |
ret x0 | Return to address in x0 |
adrp x0, symbol | PC-relative page address |
add x0, x0, :lo12:symbol | Low 12 bits of symbol offset |
// Non-leaf function
stp x29, x30, [sp, #-32]! // save fp, lr; allocate 32 bytes
mov x29, sp // set frame pointer
stp x19, x20, [sp, #16] // save callee-saved registers
// ... body ...
ldp x19, x20, [sp, #16] // restore
ldp x29, x30, [sp], #32 // restore fp, lr; deallocate
ret
// Leaf function (no calls, no callee-saved regs needed)
// Can use red zone (no rsp adjustment) — but AArch64 has no red zone
sub sp, sp, #16 // allocate locals
// ... body ...
add sp, sp, #16
ret// Barrier
__asm__ volatile ("dmb ish" ::: "memory");
// Load acquire
static inline int load_acquire(volatile int *p) {
int val;
__asm__ volatile ("ldar %w0, %1" : "=r"(val) : "Q"(*p));
return val;
}
// Store release
static inline void store_release(volatile int *p, int val) {
__asm__ volatile ("stlr %w1, %0" : "=Q"(*p) : "r"(val));
}
// Read system counter
static inline uint64_t read_cntvct(void) {
uint64_t val;
__asm__ volatile ("mrs %0, cntvct_el0" : "=r"(val));
return val;
}AArch64-specific constraints:
"Q" — memory operand suitable for exclusive/acquire/release instructions"r" — any general-purpose register"w" — any FP/SIMD register#include <arm_neon.h>
// Add 4 floats at once
float32x4_t a = vld1q_f32(arr_a); // load 4 floats
float32x4_t b = vld1q_f32(arr_b);
float32x4_t c = vaddq_f32(a, b);
vst1q_f32(result, c);
// Horizontal sum
float32x4_t sum = vpaddq_f32(c, c);
sum = vpaddq_f32(sum, sum);
float total = vgetq_lane_f32(sum, 0);Naming convention: v<op><q>_<type>
q suffix: 128-bit (quad) vector_f32: float32, _s32: int32, _u8: uint8, etc.| Aspect | Linux (AAPCS64) | Apple Darwin (arm64) |
|---|---|---|
| Stack alignment | 16 bytes at public interfaces | 16 bytes |
| Red zone | 128 bytes below SP | No red zone |
x18 register | Platform reserved (TLS) | Platform register (do not use) |
| Varargs | x0–x7, then stack | Same, but different objc_msgSend conventions |
| Name mangling | Itanium C++ ABI | Same + Apple blocks |
On macOS/iOS, avoid using x18; use _DARWIN_C_LEVEL headers for platform types.
Apple Matrix coprocessor (AMX) is not exposed via public intrinsics. Access paths:
// Practical: Accelerate/vecLib uses AMX internally
#include <Accelerate/Accelerate.h>
// cblas_sgemm, vDSP_* dispatch to AMX on M-series
// Low-level: community-documented opcodes — not portable, avoid in productionPrefer Metal Performance Shaders or Accelerate for matrix workloads on Apple Silicon (skills/platform/apple-silicon).
macOS on Apple Silicon uses 16KB pages (not 4KB):
#include <unistd.h>
long page = sysconf(_SC_PAGESIZE); // 16384 on macOS arm64
// Align mmap and posix_memalign to page sizeCode assuming PAGE_SIZE == 4096 may misalign buffers or fail mmap on macOS.
Porting checklist
├── Replace 128-bit fixed loops with svcnt*() strides on SVE hardware
├── Use predicates (svwhilelt) for tails instead of scalar epilogues
├── Guard SVE code with #ifdef __ARM_FEATURE_SVE
└── Keep NEON path for Apple M1–M3 (no SVE); use SVE2 on Graviton/M4+See skills/platform/arm-sve for SVE intrinsics and auto-vectorization flags.
For a register reference, see references/reference.md.
skills/low-level-programming/assembly-x86 for x86-64 assemblyskills/compilers/cross-gcc for cross-compilation toolchainskills/debuggers/gdb for debugging ARM code with gdbserverskills/platform/arm-sve for SVE/SVE2 scalable vectorsskills/platform/apple-silicon for M-series unified memory and AMX© mohitmishra786, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (references) in skills/low-level-programming/assembly-arm of mohitmishra786/low-level-dev-skills.
Open the folder on GitHubat commit bdc5847
ARM and AArch64 Assembly next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| ARM and AArch64 Assembly this skillmohitmishra786/low-level-dev-skills | 252 | — | ~1.9k | Automated safety check: Pass | MIT | |
| C64 Meatloaf Debugidolpx/meatloaf | 128 | — | ~12k | Automated safety check: Pass | GPL-3.0 | |
| Embedded Stm32Mindrally/skills | 271 | — | ~2.3k | Automated safety check: Pass | Apache-2.0 | |
| Esp32 Firmware Engineeralxv2016/folloup-sticky | 117 | 1 repos | ~3.8k | Automated safety check: Pass | GPL-3.0 | |
| ExecuTorch Binary Size Reductionpytorch/executorch | 5.1k | — | ~793 | Automated safety check: Pass | Custom licence | |
| Extempore JIT Debugging Guidedigego/extempore | 1.5k | — | ~4.4k | Automated safety check: Pass | None |
idolpx/meatloaf
Debug Commodore 64 BASIC programs, cc65-compiled C PRGs, and Meatloaf ESP32 firmware in tandem, using the Ultimate 64's REST API and Meatloaf's UART serial debug output.
Mindrally/skills
Best practices for embedded C/C++ development on STM32 microcontrollers using the HAL, covering peripherals, DMA, interrupts, memory constraints, and hardware-focused testing.
alxv2016/folloup-sticky
ESP32 firmware engineering for ESP-IDF projects. An agent skill from alxv2016/folloup-sticky.
pytorch/executorch
Measures and shrinks the ExecuTorch runtime binary by building a size test, analyzing it with bloaty and landing each reduction as its own pull request.
digego/extempore
Debugging guide for Extempore covering its three layers, compilation paths, startup sequence and the batch, eval and interactive modes used to isolate JIT problems.
The-OpenROAD-Project/OpenROAD
Fixes an OpenROAD bug from a GitHub issue or error code: finds the root cause, implements the fix, adds a regression test and prepares a signed-off commit.
mohitmishra786/low-level-dev-skills
Reference for RISC-V assembly on RV32 and RV64: register names and calling convention, extension naming, GCC and Clang inline asm, and QEMU with GDB debugging.
mohitmishra786/low-level-dev-skills
Explains x86-64 registers, the System V AMD64 calling convention, and how to read compiler-generated or inline assembly.
mohitmishra786/low-level-dev-skills
Guides your agent through Bazel for C/C++ projects: BUILD files, Bzlmod dependencies, toolchain registration, remote execution, dependency queries and sandbox debugging.
mohitmishra786/low-level-dev-skills
Binary hardening skill for security-hardened C/C++ builds. An agent skill from mohitmishra786/low-level-dev-skills.
mohitmishra786/low-level-dev-skills
GNU binutils skill for binary manipulation and analysis. An agent skill from mohitmishra786/low-level-dev-skills.
mohitmishra786/low-level-dev-skills
Build acceleration skill for C/C++ projects. An agent skill from mohitmishra786/low-level-dev-skills.
Works with
Categories
Guides reading and writing AArch64 and ARM Thumb assembly: compiler output, inline asm, registers, the AAPCS calling convention and NEON or SVE basics. An agent is guided through AArch64 and 32-bit ARM Thumb assembly: reading compiler output, writing inline asm in C or C++ and understanding the ARM calling conventions AAPCS64 and AAPCS. It also covers debugging register and stack state on ARM hardware or QEMU.
ARM and AArch64 Assembly fits situations like: reading GCC or Clang assembly output for an AArch64 target; writing inline asm in C or C++ for ARM; looking up AAPCS64 registers and the calling convention; debugging register and stack state under QEMU.
Run `npx skills add mohitmishra786/low-level-dev-skills --skill assembly-arm -a claude-code`. Or copy the skill folder (skills/low-level-programming/assembly-arm in mohitmishra786/low-level-dev-skills) into .claude/skills/assembly-arm in your project. Claude Code loads it when a task matches its description.
Run `npx skills add mohitmishra786/low-level-dev-skills --skill assembly-arm -a codex`. Or copy the skill folder (skills/low-level-programming/assembly-arm in mohitmishra786/low-level-dev-skills) into .agents/skills/assembly-arm in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mohitmishra786/low-level-dev-skills --skill assembly-arm -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/assembly-arm, .gemini/skills/assembly-arm, .github/skills/assembly-arm and .opencode/skills/assembly-arm in your project.
SKILL.md names no scripts, command-line tools or credentials: ARM and AArch64 Assembly is instructions for the agent only. Our summary lists: An AArch64 cross-compiler such as aarch64-linux-gnu-gcc; QEMU or ARM hardware for running and debugging.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
ARM and AArch64 Assembly is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.9k tokens (SKILL.md is roughly 7.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.4k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with ARM and AArch64 Assembly: C64 Meatloaf Debug (idolpx/meatloaf, 128 stars), Embedded Stm32 (Mindrally/skills, 271 stars), Esp32 Firmware Engineer (alxv2016/folloup-sticky, 117 stars) and ExecuTorch Binary Size Reduction (pytorch/executorch, 5.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
mohitmishra786 (a GitHub user) maintains it in mohitmishra786/low-level-dev-skills, which has 252 GitHub stars. The repository holds 138 skills in this directory. The repository was last updated on June 27, 2026.
Source: mohitmishra786/low-level-dev-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.