From 3939adadfecc486173df35e1f54c606a9bb4bb94 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com> Date: Wed, 27 Mar 2024 08:31:41 +0100 Subject: 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> --- Examples/HelloWorld.asm | 7 +++++-- Examples/HelloWorld.asm.pp | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 Examples/HelloWorld.asm.pp (limited to 'Examples') 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 -- cgit v1.2.3