Calling interrupts to get a string printed worked only on x86
-compatible CPUs working in real mode
(which DOS ran under). Modern operating systems work in protected mode
in which BIOS interrupts are no longer available.
Today, console output is typically represented by a file handle
to which you send data using standard library or, if you want to do it low-level, direct kernel functions. (In POSIX system the call is write
)
From Linux System Call table you can use sys_write
available under int 0x80
(You need to use inline assembly to fill the parameters and call the interrupt)