diff options
| author | Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com> | 2024-03-27 06:43:38 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com> | 2024-03-27 06:43:38 +0100 |
| commit | 69b78ac22d04b56a9882e845230a1df27d9af9a9 (patch) | |
| tree | 21460bc13551cdd2d3bea43b71937066cccd3469 /Examples/ExampleCDialect.S | |
| parent | 25b10ab01106edd154ea3c4a5806b43d795e9d10 (diff) | |
IMP: See below, important changes.
Fix C RISC Compiler, moved AsmKit.cc and String.cc into Sources/
- C Compiler: now supports if statements and fixed code generation.
- Cleaned up AsmKit AMD64.hpp from useless macros.
Signed-off-by: Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com>
Diffstat (limited to 'Examples/ExampleCDialect.S')
| -rw-r--r-- | Examples/ExampleCDialect.S | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Examples/ExampleCDialect.S b/Examples/ExampleCDialect.S new file mode 100644 index 0000000..f1ed8fe --- /dev/null +++ b/Examples/ExampleCDialect.S @@ -0,0 +1,22 @@ +# Path: Examples/ExampleCDialect.c +# Language: MultiProcessor Assembly (Generated from C) +# Build Date: 2024-3-27 + +dword export .text main + + + lda r2,0x1000 + + lda r12, import __MPCC_IF_PROC_462562513200 + #r12 = Code to jump on, r11 right cond, r10 left cond. + beq r10, r11, r12 +dword export .text __MPCC_IF_PROC_462562513200 + + + ldw r19, r2 + jlr + + + ldw r19, 57 + jlr + |
