From b2928397ecdbd0b6ce1f622dda704be4d7f5f825 Mon Sep 17 00:00:00 2001 From: oxe-i Date: Thu, 23 Apr 2026 07:46:12 +0000 Subject: [PATCH 1/2] fix name, grammar revision, extra case --- config.json | 2 +- .../practice/assemble/.docs/instructions.md | 25 +++++--- exercises/practice/assemble/.meta/extra.json | 63 ++++++++++++------- exercises/practice/assemble/AssembleTest.lean | 53 +++++++++------- 4 files changed, 89 insertions(+), 54 deletions(-) diff --git a/config.json b/config.json index 432fed7..cf85639 100644 --- a/config.json +++ b/config.json @@ -812,7 +812,7 @@ }, { "slug": "assemble", - "name": "assemble", + "name": "Assemble", "uuid": "17337704-ef28-490b-bbdd-f8e3f51e326b", "practices": [], "prerequisites": [], diff --git a/exercises/practice/assemble/.docs/instructions.md b/exercises/practice/assemble/.docs/instructions.md index 1b7760e..d123c24 100644 --- a/exercises/practice/assemble/.docs/instructions.md +++ b/exercises/practice/assemble/.docs/instructions.md @@ -1,6 +1,6 @@ # Instructions -In this exercise, you will define the syntax and execution model for a small assembly-like language inspired by the `x86-64` assembly language. +In this exercise, you will define the syntax and execution model for a small language inspired by the `x86-64` assembly language. The goal is to formalize how code is written, parsed, and executed within a constrained environment. @@ -41,7 +41,7 @@ Your language must support the following registers: Registers start with a default value of `0`, unless they are used to pass arguments to the function. -For example, in the following program, all registers have a value of `0` with the exception of `rdi`, which is initialized with `10`, and `rsi`. which is initialized with `-20`: +For example, in the following program, all registers have a value of `0` with the exception of `rdi`, which is initialized with `10`, and `rsi`, which is initialized with `-20`: ```lean program(10, -20) @@ -49,8 +49,10 @@ program(10, -20) The return value of the program is always stored in `rax`. -Note that register names are _case-insensitive_. +~~~~exercism/note +Register names are _case-insensitive_. This means that `rax`, `RAX` and `rAx` all refer to the same register. +~~~~ ## Assembly code @@ -70,10 +72,12 @@ Labels have the following syntax: