diff options
| author | Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com> | 2024-03-27 08:31:41 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com> | 2024-03-27 08:31:41 +0100 |
| commit | 3939adadfecc486173df35e1f54c606a9bb4bb94 (patch) | |
| tree | 3b80ea14534e74e4bdb2c3db26a6270f66e49ce4 /Examples | |
| parent | 69b78ac22d04b56a9882e845230a1df27d9af9a9 (diff) | |
Toolchain: Fix bpp and link, deprecate ccplus (C++ compiler)
repurpose all rule to compile everything.
Signed-off-by: Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com>
Diffstat (limited to 'Examples')
| -rw-r--r-- | Examples/HelloWorld.asm | 7 | ||||
| -rw-r--r-- | Examples/HelloWorld.asm.pp | 19 |
2 files changed, 24 insertions, 2 deletions
diff --git a/Examples/HelloWorld.asm b/Examples/HelloWorld.asm index ccfccc3..71e90f0 100644 --- a/Examples/HelloWorld.asm +++ b/Examples/HelloWorld.asm @@ -3,9 +3,12 @@ ; Start sequence of program. +%def gdtBase 0x1000 +%def gdtLimit 0x100 + export .data GDT - .number 55 - .number 100 + .number gdtBase + .number gdtLimit export .text __start mov rcx, 47 ; exit program diff --git a/Examples/HelloWorld.asm.pp b/Examples/HelloWorld.asm.pp new file mode 100644 index 0000000..c9625c4 --- /dev/null +++ b/Examples/HelloWorld.asm.pp @@ -0,0 +1,19 @@ +#bits 64 +#org 1000 + +; Start sequence of program. + + +export .data GDT + .number 0x1000 + .number 0x100 + +export .text __start + mov rcx, 47 ; exit program + mov rdx, 0x0 ; exit code 0 + int 50 + int 50 + int 50 + int 50 + int 50 + ret |
