Here, I am providing you an example code using NASM assembly language for reading three integers, performing subtraction, and displaying the result as an equality.
section .data
in_format db "%d%d%d", 0
out_format db "Result: %d = %d - %d - %d", 10, 0
section .bss
num1 resd 1
num2 resd 1
num3 resd 1
result resd 1
section .text
extern printf
extern scanf
global main
main:
; Read input
pusha
lea rdi, [in_format]
lea rsi, [num1]
lea rdx, [num2]
lea rcx, [num3]
call scanf
popa
; Perform subtraction
mov eax, [num1]
sub eax, [num2]
sub eax, [num3]
mov [result], eax
; Display output
pusha
lea rdi, [out_format]
mov esi, [result]
mov edx, [num1]
mov ecx, [num2]
mov r8d, [num3]
call printf
popa
; Exit program
mov rax, 1
mov rdi, 0
syscall
To assemble and run the above code, you can use the NASM assembler and GCC linker:
nasm -f elf64 -g -F dwarf main.asm -o main.o
gcc main.o -o main
./main
Please note that this code is for the NASM assembler on the x86-64 architecture, using the Linux system calls, and C standard library functions scanf and printf. You may need to modify the code if you are using a different assembler, architecture, or operating system.