egg

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 9ea2a65a90056f1352a9e5172197d05bc52c6a4c
parent b8c0beefee4e249ea6e9c6f02bfab5665f23c1e1
Author: Gabriel G. de Brito (AKA 96) <gabrielgbrito@icloud.com>
Date:   Tue, 27 Aug 2024 13:52:35 -0300

Merge pull request #23 from gboncoffee/directives-doc

Added directives documentation
Diffstat:
MREADME-pt.md | 11+++++++++++
MREADME.md | 11+++++++++++
2 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/README-pt.md b/README-pt.md @@ -79,6 +79,17 @@ label2: add t0, t0, t0 ; inserido. Use %% para inserir um % (ou %25). msg: #Hello, World!%0a + +; Algumas diretivas são suportadas. As diretivas "bitsxx" criam números literais +; no código, com o tamanho em bits especificado: +.bits8 0xca 0xfe 0xba 0xbe 0xde 0xad 0xbe 0xef +.bits16 0xcafe 0xbabe 0xdead 0xbeef +.bits32 0xcafebabe 0xdeadbeef +.bits64 0xcafebabedeadbeef +; A diretiva "space" adiciona alguns bytes de espaço vazio no código: +.space 16 +; A diretiva "include" faz um "copia-cola" de outro arquivo no código: +.include other-asm.asm ``` Cada diretório de cada arquitetura possui programas Assembly de teste que podem diff --git a/README.md b/README.md @@ -79,6 +79,17 @@ label2: add t0, t0, t0 ; %% to escape it. msg: #Hello, World!%0a + +; Some directives are supported. "bitsxx" ones creates literal numbers in the +; code, with the bit length specified: +.bits8 0xca 0xfe 0xba 0xbe 0xde 0xad 0xbe 0xef +.bits16 0xcafe 0xbabe 0xdead 0xbeef +.bits32 0xcafebabe 0xdeadbeef +.bits64 0xcafebabedeadbeef +; The "space" directive adds some bytes of spacing in the code: +.space 16 +; The "include" directive "copy-pastes" another file in the code: +.include other-asm.asm ``` Each architeture folder has test Assembly files you may use as examples.